Skip to content

gi: fix the usage of closure in CallbackIn::release

Xi Ruoyao requested to merge xry111/gjs:xry111/fix-closure-release into master

We were getting closure pointer from in_arg. Unfortunately, in_arg contains the native closure pointer, which does not equals to of the pointer to ffi_closure if libffi is built without --disable-exec-static-tramp.

This causes 46 test failures on a x86_64-linux with libffi built without --disable-exec-static-tramp. I guess gjs has never been really tested with such a libffi build :).

Fixes #479 (closed).

Edited by Xi Ruoyao

Merge request reports