Skip to content

Commit

Permalink
Fix Target.new_to_descriptor for Lua 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandlo committed Feb 3, 2025
1 parent b10e135 commit b3abcd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vips/Target.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Target.vobject = function(self)
end

Target.new_to_descriptor = function(descriptor)
collectgarbage("stop")
local target = vips_lib.vips_target_new_to_descriptor(descriptor)
collectgarbage("restart")
if target == ffi.NULL then
error("can't create output target from descriptor " .. descriptor)
else
Expand Down

0 comments on commit b3abcd4

Please sign in to comment.