mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
3cf9e73d52
commit
577399616d
2 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,8 @@ main()
|
|||
id o;
|
||||
id pool;
|
||||
|
||||
[NSAutoreleasePool enableDoubleReleaseCheck:YES];
|
||||
|
||||
pool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
d = [NSData dataWithContentsOfMappedFile:@"nsdata.m"];
|
||||
|
@ -80,7 +82,6 @@ main()
|
|||
o = [a decodeObject];
|
||||
printf("Decoded data from archive - length %d\n", [o length]);
|
||||
[a release];
|
||||
[o release];
|
||||
|
||||
[d setCapacity: 2000000];
|
||||
printf("Set capacity of shared memory item to %d\n", [d capacity]);
|
||||
|
|
|
@ -26,6 +26,7 @@ main ()
|
|||
NSHost* n;
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
|
||||
[NSAutoreleasePool enableDoubleReleaseCheck:YES];
|
||||
c = [NSHost currentHost];
|
||||
displayHost(c);
|
||||
n = [NSHost hostWithName:[c name]];
|
||||
|
@ -37,7 +38,6 @@ main ()
|
|||
|
||||
[NSHost setHostCacheEnabled:NO];
|
||||
|
||||
[n release];
|
||||
n = [NSHost hostWithName:[c name]];
|
||||
displayHost(n);
|
||||
printf("c:%lx, n:%lx, a:%lx\n", c, n, a);
|
||||
|
|
Loading…
Reference in a new issue