mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +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
|
@ -1,6 +1,7 @@
|
|||
#include <Foundation/NSMethodSignature.h>
|
||||
#include <Foundation/NSInvocation.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSAutoreleasePool.h>
|
||||
|
||||
typedef struct {
|
||||
char c;
|
||||
|
@ -178,6 +179,7 @@ main ()
|
|||
NSMethodSignature *sig;
|
||||
Target *t;
|
||||
id p;
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
|
||||
t = [Target new];
|
||||
p = [[MyProxy alloc] initWithTarget: t];
|
||||
|
@ -392,6 +394,7 @@ main ()
|
|||
la = [p loopLargePtr: laptr];
|
||||
printf("forward: {%d,%s,%.2f}\n", la.i, la.s, la.f);
|
||||
|
||||
[arp release];
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue