mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
More leaks fixed
This commit is contained in:
parent
87c50830e2
commit
aedd13dc94
19 changed files with 174 additions and 153 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue