mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
518cf57a43
commit
22bceb3df4
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue