([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:
Andrew McCallum 1995-08-02 15:39:31 +00:00
parent 734d741afe
commit f35ed03a69

View file

@ -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];
}