From 0b5ec72bf8eaf3ce9200d81d7b2f48950b61db90 Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 21 Dec 2000 13:39:11 +0000 Subject: [PATCH] Fix memory leak git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8391 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 1 + Source/NSString.m | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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 */