@@ -131,21 +131,25 @@ - initWithDestructor: (void(*)(id))destructor { self = [super init]; - /* FIXME: Call destructor on Win32 */ if (!of_tlskey_new(&key, destructor)) { Class c = isa; [super dealloc]; @throw [OFInitializationFailedException newWithClass: c]; } return self; } -/* FIXME: Add dealloc! */ +- (void)dealloc +{ + of_tlskey_free(key); + + [super dealloc]; +} @end @implementation OFMutex + mutex {