From 84dd376ed8876c687eae455ea58354acba68f196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20L=C3=B6tscher?= Date: Sat, 16 Mar 2024 08:08:25 +0100 Subject: [PATCH] Fix crashes due to garbage collection --- src/vips/voperation.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vips/voperation.lua b/src/vips/voperation.lua index d71d748..5de1b31 100644 --- a/src/vips/voperation.lua +++ b/src/vips/voperation.lua @@ -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