Fix zombie creation for new runtime with hidden class for associated objects

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37553 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2014-01-07 11:09:05 +00:00
parent bf086d4725
commit 3a895af609

View file

@ -138,11 +138,8 @@ static Class zombieClass = Nil;
static NSMapTable *zombieMap = 0;
#if !GS_WITH_GC
static void GSMakeZombie(NSObject *o)
static void GSMakeZombie(NSObject *o, Class c)
{
Class c;
c = object_getClass(o);
object_setClass(o, zombieClass);
if (0 != zombieMap)
{
@ -854,7 +851,7 @@ NSDeallocateObject(id anObject)
AREM(aClass, (id)anObject);
if (NSZombieEnabled == YES)
{
GSMakeZombie(anObject);
GSMakeZombie(anObject, aClass);
if (NSDeallocateZombies == YES)
{
NSZoneFree(z, o);