Put autorelease pools in place

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3019 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-10-03 05:11:05 +00:00
parent 8efe9b06d5
commit 352581a203
21 changed files with 63 additions and 0 deletions

View file

@ -1,6 +1,7 @@
#include <Foundation/NSArray.h>
#include <Foundation/NSString.h>
#include <Foundation/NSHost.h>
#include <Foundation/NSAutoreleasePool.h>
void
displayHost(NSHost* h)
@ -23,6 +24,7 @@ main ()
NSHost* a;
NSHost* c;
NSHost* n;
NSAutoreleasePool *arp = [NSAutoreleasePool new];
c = [NSHost currentHost];
displayHost(c);
@ -40,5 +42,6 @@ main ()
displayHost(n);
printf("c:%lx, n:%lx, a:%lx\n", c, n, a);
[arp release];
exit (0);
}