mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
8efe9b06d5
commit
352581a203
21 changed files with 63 additions and 0 deletions
|
@ -3,9 +3,11 @@
|
|||
#include <Foundation/NSArray.h>
|
||||
#include <Foundation/NSDictionary.h>
|
||||
#include <Foundation/NSDate.h>
|
||||
#include <Foundation/NSAutoreleasePool.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
NSProcessInfo *pi = [NSProcessInfo processInfo];
|
||||
NSString* aString;
|
||||
NSString* aKey;
|
||||
|
@ -28,5 +30,6 @@ int main(int argc, char *argv[])
|
|||
printf("++>%s=%s\n",[aKey cString],[[[pi environment]
|
||||
objectForKey:aKey] cString]);
|
||||
|
||||
[arp release];
|
||||
exit(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue