Fixed huge memory leak

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9570 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-04-12 14:11:29 +00:00
parent 518cf57a43
commit 22bceb3df4

View file

@ -636,7 +636,7 @@ static NSMutableDictionary* classToAliasMappings = nil;
propertyList = [plist copy];
currentDecodedObjectRepresentation = propertyList;
namesToObjects = [NSMutableDictionary dictionaryWithCapacity: 119];
namesToObjects = RETAIN ([NSMutableDictionary dictionaryWithCapacity: 119]);
/* Decode version information */
versionString = [propertyList objectForKey: @"Version"];
@ -647,6 +647,13 @@ static NSMutableDictionary* classToAliasMappings = nil;
return self;
}
- (void) dealloc
{
RELEASE (propertyList);
RELEASE (namesToObjects);
[super dealloc];
}
- (id) decodeObjectWithName: (NSString*)name
{
id object, label, representation, className;