mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
([NSAutoreleasePool -dealloc]): Use object_get_class() instead of
->isa. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@533 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
037338d477
commit
e20a78619b
1 changed files with 4 additions and 1 deletions
|
@ -150,7 +150,10 @@ static unsigned pool_count_warning_threshhold = UINT_MAX;
|
|||
for (i = 0; i < released_count; i++)
|
||||
{
|
||||
id anObject = released[i];
|
||||
if (anObject->isa == (void*) 0xdeadface)
|
||||
/* xxx When would this ever happen anyway?
|
||||
If the class_pointer is 0xdeadface, sendmsg won't work and we
|
||||
couldn't even have gotten here. */
|
||||
if (object_get_class(anObject) == (void*) 0xdeadface)
|
||||
[self error:"Autoreleasing deallocated object. Debug after setting [NSObject enableDoubleReleaseCheck:YES] to check for release errors."];
|
||||
released[i]=0;
|
||||
[anObject release];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue