summaryrefslogtreecommitdiff
path: root/dalos-luafilter.lua
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-12-23 18:38:08 +0100
committerPixel <pixel@nobis-crew.org>2009-12-23 18:38:08 +0100
commitc050ff847539caa3c227ae5f703a3ca178b9979e (patch)
tree02cf9a6803972bac13104e6b1787fa003ee6b58f /dalos-luafilter.lua
parentc36c9d0a335f9dffd1baddced837557b4a669a79 (diff)
Trying to be a little bit nicer with the ressources.
Diffstat (limited to 'dalos-luafilter.lua')
-rw-r--r--dalos-luafilter.lua1
1 files changed, 1 insertions, 0 deletions
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