mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue