mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-14 10:00:55 +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,6 +62,7 @@ static Dictionary* mallocAddresses;
|
||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
|
if ([[self class] objectForAddress:address])
|
||||||
[mallocAddresses removeElementAtKey:address];
|
[mallocAddresses removeElementAtKey:address];
|
||||||
OBJC_FREE(address);
|
OBJC_FREE(address);
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
|
|
Loading…
Reference in a new issue