Skip to content

Commit b79f3ef

Browse files
kleisaukerolandlo
authored andcommitted
Ensure GC restarts when gainmap is missing
1 parent caa08bb commit b79f3ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vips/Image_methods.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,11 +500,11 @@ end
500500
function Image_method:get_gainmap()
501501
collectgarbage("stop")
502502
local vimage = vips_lib.vips_image_get_gainmap(self.vimage)
503+
collectgarbage("restart")
503504
if vimage == ffi.NULL then
504505
return nil
505506
end
506507

507-
collectgarbage("restart")
508508
return Image.new(vimage)
509509
end
510510
-- standard header fields

0 commit comments

Comments
 (0)