From c050ff847539caa3c227ae5f703a3ca178b9979e Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 23 Dec 2009 18:38:08 +0100 Subject: Trying to be a little bit nicer with the ressources. --- dalos-luafilter.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'dalos-luafilter.lua') diff --git a/dalos-luafilter.lua b/dalos-luafilter.lua index 0abf40a..c0b307e 100644 --- a/dalos-luafilter.lua +++ b/dalos-luafilter.lua @@ -96,6 +96,7 @@ end local s, v = pcall(Input, dlg.value) if not s then error("Problem loading file " .. dlg.value) end local f = preload(v) + v:destroy() if not f then error("Syntax error loading file " .. dlg.value) end local data, otype, tname = f() if otype ~= "Lua Filter" then error("Wrong template type: " .. otype) end -- cgit v1.2.3