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)
14
14
end
15
15
16
16
Target .new_to_descriptor = function (descriptor )
17
+ collectgarbage (" stop" )
17
18
local target = vips_lib .vips_target_new_to_descriptor (descriptor )
19
+ collectgarbage (" restart" )
18
20
if target == ffi .NULL then
19
21
error (" can't create output target from descriptor " .. descriptor )
20
22
else
@@ -23,7 +25,9 @@ Target.new_to_descriptor = function(descriptor)
23
25
end
24
26
25
27
Target .new_to_file = function (filename )
28
+ collectgarbage (" stop" )
26
29
local target = vips_lib .vips_target_new_to_file (filename )
30
+ collectgarbage (" restart" )
27
31
if target == ffi .NULL then
28
32
error (" can't create output target from filename " .. filename )
29
33
else
@@ -32,7 +36,9 @@ Target.new_to_file = function(filename)
32
36
end
33
37
34
38
Target .new_to_memory = function ()
39
+ collectgarbage (" stop" )
35
40
local target = vips_lib .vips_target_new_to_memory ()
41
+ collectgarbage (" restart" )
36
42
if target == ffi .NULL then
37
43
error (" can't create output target from memory" )
38
44
else
You can’t perform that action at this time.
0 commit comments