diff --git a/ChangeLog b/ChangeLog index 26bd74a67..d0a11dd5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Source/NSString.m b/Source/NSString.m index 8673ec998..6883caade 100644 --- a/Source/NSString.m +++ b/Source/NSString.m @@ -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 */