mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
rework memory management for ffi
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30611 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
122c4b087a
commit
acda1d1480
6 changed files with 58 additions and 15 deletions
|
@ -334,7 +334,11 @@ _arg_addr(NSInvocation *inv, int index)
|
|||
#if defined(USE_LIBFFI)
|
||||
if (_cframe)
|
||||
{
|
||||
NSZoneFree(NSDefaultMallocZone(), _cframe);
|
||||
/* If we get here then we are not using GC, so the _frame instance
|
||||
* variable points to a mutable data object containing _cframe and
|
||||
* we can release it.
|
||||
*/
|
||||
[((GSFFIInvocation*)self)->_frame release];
|
||||
}
|
||||
#elif defined(USE_FFCALL)
|
||||
if (_cframe)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue