Fix leaked FFI structure argument/returntype information

This commit is contained in:
rfm 2024-11-15 15:43:47 +00:00
parent 2f9f0d6761
commit bdad4987ae
6 changed files with 79 additions and 59 deletions

View file

@ -295,8 +295,7 @@ exitedThread(void *slot)
_sig = RETAIN(aSignature);
_numArgs = [aSignature numberOfArguments];
_info = [aSignature methodInfo];
_frame = cifframe_from_signature(_sig);
[_frame retain];
[self setupFrameFFI: _sig];
_cframe = [_frame mutableBytes];
/* Make sure we have somewhere to store the return value if needed.