mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix memory leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8391 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dcbe706006
commit
0f4e809a97
2 changed files with 4 additions and 3 deletions
|
@ -9,6 +9,7 @@
|
|||
* Source/NSConnection.m: ditto
|
||||
* Source/NSGDictionary.m: ditto
|
||||
* Source/NSNotificationCenter.m: ditto
|
||||
* Source/NSString.m: property list memory leak fixed.
|
||||
|
||||
2000-12-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -4083,7 +4083,7 @@ GSPropertyList(NSString *string)
|
|||
[[[parser doc] root] name]);
|
||||
return nil;
|
||||
}
|
||||
return RETAIN(nodeToObject([[[parser doc] root] children]));
|
||||
return AUTORELEASE(RETAIN(nodeToObject([[[parser doc] root] children])));
|
||||
}
|
||||
#endif
|
||||
d = [string dataUsingEncoding: NSUnicodeStringEncoding];
|
||||
|
@ -4094,7 +4094,7 @@ GSPropertyList(NSString *string)
|
|||
_pld.lin = 1;
|
||||
if (plAlloc == 0)
|
||||
setupPl();
|
||||
return parsePlItem(pld);
|
||||
return AUTORELEASE(parsePlItem(pld));
|
||||
}
|
||||
|
||||
static id
|
||||
|
@ -4184,6 +4184,6 @@ GSPropertyListFromStringsFormat(NSString *string)
|
|||
return nil;
|
||||
}
|
||||
}
|
||||
return dict;
|
||||
return AUTORELEASE(dict);
|
||||
}
|
||||
#endif /* NO_GNUSTEP */
|
||||
|
|
Loading…
Reference in a new issue