mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
Fixed memory leaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3632 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5524e281f9
commit
9326334ae8
3 changed files with 17 additions and 8 deletions
|
@ -1,8 +1,13 @@
|
|||
Mon Feb 1 9:55:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* src/NSArray.m: ([-initWithContentsOfFile:]) Fixed memory leak.
|
||||
* src/NSDictionary.m: ([-initWithContentsOfFile:]) Fixed memory leak.
|
||||
|
||||
Sat Jan 30 5:55:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
Tidying up brain-damaged changes I made while ill.
|
||||
src/NSConnection.m: Tidied proxy handling a bit
|
||||
src/NSDistantObject.m: Tidied - made closer to OpenStep spec.
|
||||
* src/NSConnection.m: Tidied proxy handling a bit
|
||||
* src/NSDistantObject.m: Tidied - made closer to OpenStep spec.
|
||||
|
||||
Fri Jan 29 11:00:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
|
|
|
@ -316,6 +316,8 @@ static Class NSMutableArray_concrete_class;
|
|||
if (myString)
|
||||
{
|
||||
id result = [myString propertyList];
|
||||
|
||||
[myString release];
|
||||
if ([result isKindOfClass: [NSArray class]])
|
||||
{
|
||||
[self initWithArray: result];
|
||||
|
@ -323,7 +325,7 @@ static Class NSMutableArray_concrete_class;
|
|||
}
|
||||
}
|
||||
NSLog(@"Contents of file does not contain an array");
|
||||
[self dealloc];
|
||||
[self release];
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
|
|
@ -386,6 +386,8 @@ static Class NSMutableDictionary_concrete_class;
|
|||
if (myString)
|
||||
{
|
||||
id result = [myString propertyList];
|
||||
|
||||
[myString release];
|
||||
if ([result isKindOfClass: [NSDictionary class]])
|
||||
{
|
||||
[self initWithDictionary: result];
|
||||
|
@ -393,7 +395,7 @@ static Class NSMutableDictionary_concrete_class;
|
|||
}
|
||||
}
|
||||
NSLog(@"Contents of file does not contain a dictionary");
|
||||
[self autorelease];
|
||||
[self release];
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue