mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +00:00
Fix leaks
This commit is contained in:
parent
54ed8e41e9
commit
6b5b1f1ed0
3 changed files with 28 additions and 3 deletions
|
@ -140,6 +140,12 @@ withCapitalizedKey: (const char *)capitalized;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(key);
|
||||
DEALLOC
|
||||
}
|
||||
|
||||
- (NSUInteger) count
|
||||
{
|
||||
if (array == nil)
|
||||
|
@ -401,9 +407,9 @@ withCapitalizedKey: (const char *)capitalized
|
|||
withCapitalizedKey: capitalized] autorelease];
|
||||
}
|
||||
|
||||
- (id) initWithKey: (NSString *)aKey ofObject: (id)anObject
|
||||
withCapitalizedKey: (const char *)capitalized;
|
||||
|
||||
- (id) initWithKey: (NSString *)aKey
|
||||
ofObject: (id)anObject
|
||||
withCapitalizedKey: (const char *)capitalized
|
||||
{
|
||||
SEL set = NSSelectorFromString([NSString stringWithFormat:
|
||||
@"set%s:", capitalized]);
|
||||
|
@ -424,6 +430,12 @@ withCapitalizedKey: (const char *)capitalized;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(setArrayInvocation);
|
||||
DEALLOC
|
||||
}
|
||||
|
||||
- (void) removeObjectsAtIndexes: (NSIndexSet*)indexes
|
||||
{
|
||||
NSUInteger index = [indexes lastIndex];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue