summaryrefslogtreecommitdiff
path: root/dalos-luafilter.lua
diff options
context:
space:
mode:
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