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:
richard 1998-09-02 12:34:38 +00:00
parent bfd5967011
commit 13ba5809c0
8 changed files with 22 additions and 17 deletions

View file

@ -26,6 +26,7 @@
#include <Foundation/NSDate.h>
#include <Foundation/NSException.h>
#include <Foundation/NSProcessInfo.h>
#include <Foundation/NSAutoreleasePool.h>
#ifndef __WIN32__
#include <unistd.h>
@ -52,6 +53,7 @@ NSLog (NSString* format, ...)
void
NSLogv (NSString* format, va_list args)
{
NSAutoreleasePool *arp = [NSAutoreleasePool new];
NSString* prefix;
NSString* message;
@ -72,5 +74,6 @@ NSLogv (NSString* format, va_list args)
prefix = [prefix stringByAppendingString: message];
_NSLog_printf_handler (prefix);
[arp release];
}