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

@ -12,6 +12,7 @@
*/
#include <Foundation/NSScanner.h>
#include <Foundation/NSAutoreleasePool.h>
#include <limits.h>
#include <float.h>
#include <math.h>
@ -858,6 +859,7 @@ main (int argc, char **argv)
{
extern char *optarg;
int c;
NSAutoreleasePool *arp = [NSAutoreleasePool new];
while ((c = getopt (argc, argv, "e:")) != EOF) {
switch (c) {
@ -877,5 +879,6 @@ main (int argc, char **argv)
testScanUpToString ();
testScanCharactersFromSet ();
testScanUpToCharactersFromSet ();
[arp release];
return 0;
}