mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Removed excess release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3027 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6d66f5b04e
commit
4b04578e4c
2 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,8 @@ main()
|
||||||
id o;
|
id o;
|
||||||
id pool;
|
id pool;
|
||||||
|
|
||||||
|
[NSAutoreleasePool enableDoubleReleaseCheck:YES];
|
||||||
|
|
||||||
pool = [[NSAutoreleasePool alloc] init];
|
pool = [[NSAutoreleasePool alloc] init];
|
||||||
|
|
||||||
d = [NSData dataWithContentsOfMappedFile:@"nsdata.m"];
|
d = [NSData dataWithContentsOfMappedFile:@"nsdata.m"];
|
||||||
|
@ -80,7 +82,6 @@ main()
|
||||||
o = [a decodeObject];
|
o = [a decodeObject];
|
||||||
printf("Decoded data from archive - length %d\n", [o length]);
|
printf("Decoded data from archive - length %d\n", [o length]);
|
||||||
[a release];
|
[a release];
|
||||||
[o release];
|
|
||||||
|
|
||||||
[d setCapacity: 2000000];
|
[d setCapacity: 2000000];
|
||||||
printf("Set capacity of shared memory item to %d\n", [d capacity]);
|
printf("Set capacity of shared memory item to %d\n", [d capacity]);
|
||||||
|
|
|
@ -26,6 +26,7 @@ main ()
|
||||||
NSHost* n;
|
NSHost* n;
|
||||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||||
|
|
||||||
|
[NSAutoreleasePool enableDoubleReleaseCheck:YES];
|
||||||
c = [NSHost currentHost];
|
c = [NSHost currentHost];
|
||||||
displayHost(c);
|
displayHost(c);
|
||||||
n = [NSHost hostWithName:[c name]];
|
n = [NSHost hostWithName:[c name]];
|
||||||
|
@ -37,7 +38,6 @@ main ()
|
||||||
|
|
||||||
[NSHost setHostCacheEnabled:NO];
|
[NSHost setHostCacheEnabled:NO];
|
||||||
|
|
||||||
[n release];
|
|
||||||
n = [NSHost hostWithName:[c name]];
|
n = [NSHost hostWithName:[c name]];
|
||||||
displayHost(n);
|
displayHost(n);
|
||||||
printf("c:%lx, n:%lx, a:%lx\n", c, n, a);
|
printf("c:%lx, n:%lx, a:%lx\n", c, n, a);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue