From 06128fc67ce9d790e3ad8c689aa0030ea20a7cfe Mon Sep 17 00:00:00 2001 From: dpsimons Date: Thu, 25 Mar 2010 23:28:52 +0000 Subject: [PATCH] Avoid crash on Windows git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30040 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Source/ObjectiveC2/sync.m | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index b2eee1baa..575b0e714 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-03-03 Doug Simons + + * Source/ObjectiveC2/sync.m: Avoid crash on Windows. + 2010-03-25 Riccardo Mottola * Source/GSPThread.h diff --git a/Source/ObjectiveC2/sync.m b/Source/ObjectiveC2/sync.m index 6ecf27534..8b7f9ef4a 100644 --- a/Source/ObjectiveC2/sync.m +++ b/Source/ObjectiveC2/sync.m @@ -102,7 +102,9 @@ deallocLockClass(id obj, SEL _cmd) pthread_mutex_destroy(lock); // Free the class +#ifndef __MINGW32__ objc_disposeClassPair(lockClass); +#endif // Reset the class then call the real -dealloc obj->isa = realClass; [obj dealloc];