Fix leaks

This commit is contained in:
rfm 2025-01-08 22:32:14 +00:00
parent 54ed8e41e9
commit 6b5b1f1ed0
3 changed files with 28 additions and 3 deletions

View file

@ -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];