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];