Skip to content

Commit

Permalink
Fix crashes due to garbage collection
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandlo committed Mar 16, 2024
1 parent 0e144c8 commit 84dd376
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vips/voperation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,10 @@ voperation.call = function(name, string_options, ...)
end
end

-- garbage collection during vips_object_unref_outputs leads to crashes on Lua 5.3
collectgarbage("stop")
vips_lib.vips_object_unref_outputs(vop)
collectgarbage("restart")

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

0 comments on commit 84dd376

Please sign in to comment.