mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
648aee4906
commit
84425c4a30
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue