Avoid crash on Windows

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30040 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
dpsimons 2010-03-25 23:28:52 +00:00
parent b81a5fcc0b
commit 06128fc67c
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2010-03-03 Doug Simons <doug.simons@testplant.com>
* Source/ObjectiveC2/sync.m: Avoid crash on Windows.
2010-03-25 Riccardo Mottola <rmottola@users.sf.net> 2010-03-25 Riccardo Mottola <rmottola@users.sf.net>
* Source/GSPThread.h * Source/GSPThread.h

View file

@ -102,7 +102,9 @@ deallocLockClass(id obj, SEL _cmd)
pthread_mutex_destroy(lock); pthread_mutex_destroy(lock);
// Free the class // Free the class
#ifndef __MINGW32__
objc_disposeClassPair(lockClass); objc_disposeClassPair(lockClass);
#endif
// Reset the class then call the real -dealloc // Reset the class then call the real -dealloc
obj->isa = realClass; obj->isa = realClass;
[obj dealloc]; [obj dealloc];