Skip to content

Commit c54c0eb

Browse files
author
arch
committed
add missing file close to lua extension
1 parent 8020367 commit c54c0eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/Installer/assets/main.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function import_funscript_generator_result()
7979
-- save changes
8080
ofs.Commit(script)
8181

82-
-- delete temporary file
82+
-- delete csv file
8383
os.remove(tmpFile)
8484
end
8585

@@ -192,6 +192,7 @@ function init()
192192
mtfgVersion = string.lower(line):gsub("v", "")
193193
end
194194
end
195+
f:close()
195196
end
196197
end
197198

@@ -207,6 +208,7 @@ function update(delta)
207208
local f = io.open("C:/Temp/funscript_editor.log")
208209
if f then
209210
logfileExist = true
211+
f:close()
210212
else
211213
logfileExist = false
212214
end

0 commit comments

Comments
 (0)