mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-11 16:50:42 +00:00
([MallocAddress -dealloc]): Check for object in dictionary before
removing. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@509 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
734d741afe
commit
f35ed03a69
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ static Dictionary* mallocAddresses;
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
[mallocAddresses removeElementAtKey:address];
|
||||
if ([[self class] objectForAddress:address])
|
||||
[mallocAddresses removeElementAtKey:address];
|
||||
OBJC_FREE(address);
|
||||
[super dealloc];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue