From 845bfe3c4c6b98c55c456410e003e1e6fd51efbe Mon Sep 17 00:00:00 2001 From: rfm Date: Thu, 4 Feb 2010 18:04:13 +0000 Subject: [PATCH] don't try to cleanup on main thread exit git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29478 72102866-910b-0410-8b05-ffd578937521 --- Source/NSThread.m | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/NSThread.m b/Source/NSThread.m index 922fa0d2b..1c66e409c 100644 --- a/Source/NSThread.m +++ b/Source/NSThread.m @@ -327,14 +327,7 @@ static pthread_key_t thread_object_key; */ static void exitedThread(void *thread) { - if (thread == defaultThread) - { - NSThread *t = defaultThread; - - defaultThread = nil; - [t dealloc]; - } - else + if (thread != defaultThread) { fprintf(stderr, "WARNING thread %p terminated without calling +exit!\n", thread);