Skip to content

Commit 84dd376

Browse files
committed
Fix crashes due to garbage collection
1 parent 0e144c8 commit 84dd376

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/vips/voperation.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,10 @@ voperation.call = function(name, string_options, ...)
275275
end
276276
end
277277

278+
-- garbage collection during vips_object_unref_outputs leads to crashes on Lua 5.3
279+
collectgarbage("stop")
278280
vips_lib.vips_object_unref_outputs(vop)
281+
collectgarbage("restart")
279282

280283
-- this strange if expression is because unpack
281284
-- has not yet been implemented in the JIT compiler

0 commit comments

Comments
 (0)