# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1299808149 0 # Node ID e19f69a78f2135c36d8c0348f43073ab4a906557 # Parent 830e1f3672b9c134f37b64efa04b892537c25caa Fix for pool being removed and not just drained. diff -r 830e1f3672b9 -r e19f69a78f21 mac/dw.m --- a/mac/dw.m Thu Mar 10 23:28:10 2011 +0000 +++ b/mac/dw.m Fri Mar 11 01:49:09 2011 +0000 @@ -6966,8 +6966,9 @@ { #if !defined(GARBAGE_COLLECT) NSAutoreleasePool *pool = pthread_getspecific(_dw_pool_key); - NSLog(@"Pool draining %x", (int)pool); [pool drain]; + pool = [[NSAutoreleasePool alloc] init]; + pthread_setspecific(_dw_pool_key, pool); #endif } @@ -6989,6 +6990,7 @@ threadfunc(tmp[1]); /* Release the pool when we are done so we don't leak */ #if !defined(GARBAGE_COLLECT) + pool = pthread_getspecific(_dw_pool_key); [pool release]; #endif free(tmp);