From a1157565389ecdc545e38a4c59c9cb76751e7ed9 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Mon, 8 Dec 2008 08:43:07 +0000 Subject: [PATCH] avoid warnings about missing autorelease pool git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27256 72102866-910b-0410-8b05-ffd578937521 --- Testing/synctest/main.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Testing/synctest/main.m b/Testing/synctest/main.m index d2f5aaa63..d2568b1ff 100644 --- a/Testing/synctest/main.m +++ b/Testing/synctest/main.m @@ -9,6 +9,7 @@ static NSArray *array; @implementation SyncTest - (void) sayHello { + NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog(@"Before the sync block %s\n",[[[NSThread currentThread] description] cString]); @synchronized(array) { NSLog(@"In the sync block %s:%d\n",[[[NSThread currentThread] description] cString], [NSThread isMainThread]); @@ -17,6 +18,7 @@ static NSArray *array; NSLog(@"Done waiting\n"); } NSLog(@"After the sync block %s\n",[[[NSThread currentThread] description] cString]); + [pool release]; } @end