mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 17:41:05 +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
904fe28b67
commit
0b5ec72bf8
2 changed files with 4 additions and 3 deletions
|
@ -9,6 +9,7 @@
|
||||||
* Source/NSConnection.m: ditto
|
* Source/NSConnection.m: ditto
|
||||||
* Source/NSGDictionary.m: ditto
|
* Source/NSGDictionary.m: ditto
|
||||||
* Source/NSNotificationCenter.m: ditto
|
* Source/NSNotificationCenter.m: ditto
|
||||||
|
* Source/NSString.m: property list memory leak fixed.
|
||||||
|
|
||||||
2000-12-18 Richard Frith-Macdonald <rfm@gnu.org>
|
2000-12-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -4083,7 +4083,7 @@ GSPropertyList(NSString *string)
|
||||||
[[[parser doc] root] name]);
|
[[[parser doc] root] name]);
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
return RETAIN(nodeToObject([[[parser doc] root] children]));
|
return AUTORELEASE(RETAIN(nodeToObject([[[parser doc] root] children])));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
d = [string dataUsingEncoding: NSUnicodeStringEncoding];
|
d = [string dataUsingEncoding: NSUnicodeStringEncoding];
|
||||||
|
@ -4094,7 +4094,7 @@ GSPropertyList(NSString *string)
|
||||||
_pld.lin = 1;
|
_pld.lin = 1;
|
||||||
if (plAlloc == 0)
|
if (plAlloc == 0)
|
||||||
setupPl();
|
setupPl();
|
||||||
return parsePlItem(pld);
|
return AUTORELEASE(parsePlItem(pld));
|
||||||
}
|
}
|
||||||
|
|
||||||
static id
|
static id
|
||||||
|
@ -4184,6 +4184,6 @@ GSPropertyListFromStringsFormat(NSString *string)
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return dict;
|
return AUTORELEASE(dict);
|
||||||
}
|
}
|
||||||
#endif /* NO_GNUSTEP */
|
#endif /* NO_GNUSTEP */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue