Commit 72be2327 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Set up and drain autorelease pool in LogErrorv() so it's safe to call…

winemac: Set up and drain autorelease pool in LogErrorv() so it's safe to call from background threads.
parent fbed1f7a
......@@ -1410,9 +1410,13 @@ void LogError(const char* func, NSString* format, ...)
*/
void LogErrorv(const char* func, NSString* format, va_list args)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSString* message = [[NSString alloc] initWithFormat:format arguments:args];
fprintf(stderr, "err:%s:%s", func, [message UTF8String]);
[message release];
[pool release];
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment