diff --git a/Source/NSAutoreleasePool.m b/Source/NSAutoreleasePool.m index 9afba2a5e..a49e25fba 100644 --- a/Source/NSAutoreleasePool.m +++ b/Source/NSAutoreleasePool.m @@ -543,6 +543,11 @@ static IMP initImp; return self; } +/** + * Destroys all the autorelease pools in the thread. + * You should not call this directly, it's called automatically + * when a thread exits. + */ + (void) _endThread: (NSThread*)thread { struct autorelease_thread_vars *tv;