mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
Tidied autorelease.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3018 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f8c7590269
commit
f9ea6ad12e
1 changed files with 1 additions and 3 deletions
|
@ -41,10 +41,8 @@ printf("%u\n", [arc retainCount]);
|
||||||
[arc release];
|
[arc release];
|
||||||
printf("%u\n", [arc retainCount]);
|
printf("%u\n", [arc retainCount]);
|
||||||
[arc encodeRootObject: set];
|
[arc encodeRootObject: set];
|
||||||
/* Intentionally dodgy code - autorelease before init to see if init copes. */
|
una = [[[NSUnarchiver alloc] initForReadingWithData: [arc archiverData]] autorelease];
|
||||||
una = [[[NSUnarchiver alloc] autorelease] initForReadingWithData: [arc archiverData]];
|
|
||||||
xxx = [una decodeObject];
|
xxx = [una decodeObject];
|
||||||
[xxx release];
|
|
||||||
[apl release];
|
[apl release];
|
||||||
|
|
||||||
/* Write it to a file */
|
/* Write it to a file */
|
||||||
|
|
Loading…
Reference in a new issue