From 601b7b9d69afded2b440b4f4981eb99fdc5a9f00 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Mon, 27 Aug 2012 14:50:09 +0100 Subject: [PATCH] Memory leak in DrawFileItem(), found by NuPogodi. --- filechooser.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/filechooser.lua b/filechooser.lua index 9f3de8780..190b99103 100644 --- a/filechooser.lua +++ b/filechooser.lua @@ -113,6 +113,7 @@ function DrawFileItem(name,x,y,image) local handle = renderUtf8TextWidth(fb.bb, xleft, y, cface, name, true, width - lgap - x) renderUtf8Text(fb.bb, handle.x + lgap + x, y, cface, " ...", true) end + iw:free() end -- end of old NuPogodi's functions