mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fixed coding/decoding autorelease problem.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2949 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bfd5967011
commit
13ba5809c0
8 changed files with 22 additions and 17 deletions
|
@ -70,6 +70,7 @@
|
|||
#include <Foundation/NSDate.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSProcessInfo.h>
|
||||
#include <Foundation/NSAutoreleasePool.h>
|
||||
|
||||
/* This error message should be called only if the private main function
|
||||
* was not executed successfully. This may heppen ONLY if onother library
|
||||
|
@ -138,6 +139,7 @@ static NSMutableArray* _debug_array = nil;
|
|||
static void
|
||||
_gnu_process_args(int argc, char *argv[], char *env[])
|
||||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
int i;
|
||||
|
||||
/* Getting the process name */
|
||||
|
@ -187,6 +189,7 @@ _gnu_process_args(int argc, char *argv[], char *env[])
|
|||
[keys release];
|
||||
[values release];
|
||||
}
|
||||
[arp release];
|
||||
}
|
||||
|
||||
/* Place the _gnu_process_args function in the _libc_subinit section so
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue