@@ -367,10 +367,11 @@ } - (void)dealloc { if (initialized) - of_mutex_free(&mutex); + if (!of_mutex_free(&mutex)) + @throw [OFMutexLockedException newWithClass: isa]; [super dealloc]; } @end