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
|
@ -13,6 +13,7 @@
|
|||
#include "Foundation/NSBundle.h"
|
||||
#include "Foundation/NSException.h"
|
||||
#include "Foundation/NSString.h"
|
||||
#include <Foundation/NSAutoreleasePool.h>
|
||||
#include "LoadMe.h"
|
||||
#include "SecondClass.h"
|
||||
#include "MyCategory.h"
|
||||
|
@ -24,6 +25,7 @@ main(int ac, char *av[])
|
|||
NSBundle *bundle;
|
||||
NSString *path;
|
||||
id object;
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
|
||||
main = [NSBundle mainBundle];
|
||||
printf("Looking for main bundle...\n");
|
||||
|
@ -82,5 +84,6 @@ main(int ac, char *av[])
|
|||
[object printMyName];
|
||||
[object release];
|
||||
|
||||
[arp release];
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue