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:
rfm 2010-06-07 20:38:19 +00:00
parent 122c4b087a
commit acda1d1480
6 changed files with 58 additions and 15 deletions

View file

@ -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)