Implement CRASH_ON_ZOMBIE for memory debugging

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23267 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-08-13 07:09:31 +00:00
parent 6e330ec7aa
commit 1920a76e9e
3 changed files with 27 additions and 1 deletions

View file

@ -147,6 +147,10 @@ static void GSLogZombie(id o, SEL sel)
NSLog(@"Deallocated %@ (0x%x) sent %@",
NSStringFromClass(c), o, NSStringFromSelector(sel));
}
if (GSEnvironmentFlag("CRASH_ON_ZOMBIE", NO) == YES)
{
abort();
}
}