More leaks fixed

This commit is contained in:
rfm 2024-11-16 13:34:56 +00:00
parent 87c50830e2
commit aedd13dc94
19 changed files with 174 additions and 153 deletions

View file

@ -3,8 +3,8 @@
#include <Testing.h>
int main()
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSMutableIndexSet *set = [[NSMutableIndexSet alloc] init];
ENTER_POOL
NSMutableIndexSet *set = AUTORELEASE([NSMutableIndexSet new]);
[set addIndex:1];
[set addIndex:2];
@ -22,6 +22,6 @@ int main()
PASS([set containsIndexesInRange:NSMakeRange(0,2)], "contains range");
[pool release];
LEAVE_POOL
return 0;
}