Minor fix for zombies and new tool added.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13363 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-04-05 16:26:47 +00:00
parent c66d2c6427
commit 622cacf55f
8 changed files with 156 additions and 8 deletions

View file

@ -85,12 +85,12 @@ static void GSMakeZombie(NSObject *o)
((id)o)->class_pointer = zombieClass;
if (NSDeallocateZombies == NO)
{
if (allocationLock == 0)
if (allocationLock != 0)
{
objc_mutex_lock(allocationLock);
}
NSMapInsert(zombieMap, (void*)o, (void*)c);
if (allocationLock == 0)
if (allocationLock != 0)
{
objc_mutex_unlock(allocationLock);
}
@ -103,12 +103,12 @@ static void GSLogZombie(id o, SEL sel)
if (NSDeallocateZombies == NO)
{
if (allocationLock == 0)
if (allocationLock != 0)
{
objc_mutex_lock(allocationLock);
}
c = NSMapGet(zombieMap, (void*)o);
if (allocationLock == 0)
if (allocationLock != 0)
{
objc_mutex_unlock(allocationLock);
}