File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ Target.vobject = function(self)
1414end
1515
1616Target .new_to_descriptor = function (descriptor )
17+ collectgarbage (" stop" )
1718 local target = vips_lib .vips_target_new_to_descriptor (descriptor )
19+ collectgarbage (" restart" )
1820 if target == ffi .NULL then
1921 error (" can't create output target from descriptor " .. descriptor )
2022 else
@@ -23,7 +25,9 @@ Target.new_to_descriptor = function(descriptor)
2325end
2426
2527Target .new_to_file = function (filename )
28+ collectgarbage (" stop" )
2629 local target = vips_lib .vips_target_new_to_file (filename )
30+ collectgarbage (" restart" )
2731 if target == ffi .NULL then
2832 error (" can't create output target from filename " .. filename )
2933 else
@@ -32,7 +36,9 @@ Target.new_to_file = function(filename)
3236end
3337
3438Target .new_to_memory = function ()
39+ collectgarbage (" stop" )
3540 local target = vips_lib .vips_target_new_to_memory ()
41+ collectgarbage (" restart" )
3642 if target == ffi .NULL then
3743 error (" can't create output target from memory" )
3844 else
You can’t perform that action at this time.
0 commit comments