Prevent Busted from blowing up on cdata finalizers by properly closing

opened documents...
This commit is contained in:
NiLuJe
2020-12-19 05:32:23 +01:00
parent 0ab4023150
commit 9cda84ef2f
16 changed files with 155 additions and 20 deletions

View File

@@ -141,7 +141,7 @@ function RenderImage:renderGifImageDataWithGifLib(data, size, want_frames, width
end
end
local setmetatable = require("ffi/__gc")
frames = setmetatable(frames, frames_mt)
setmetatable(frames, frames_mt)
return frames
else
local page = gif:openPage(1)