@@ -108,10 +108,15 @@ } #if (!defined(HAVE_GMTIME_R) || !defined(HAVE_LOCALTIME_R)) && \ defined(OF_HAVE_THREADS) static OFMutex *mutex; + +OF_DESTRUCTOR() +{ + [mutex release]; +} #endif #ifdef OF_WINDOWS static __time64_t (*func__mktime64)(struct tm *); #endif