--- F:\Temp\WinTemp\TCVc633.tmp\clzma.1.5.cpp Tue Aug 30 18:30:48 2005 +++ F:\Temp\WinTemp\TCVc633.tmp\clzma.1.6.cpp Thu Sep 22 22:20:11 2005 @@ -23,6 +23,7 @@ } if (pthread_mutex_init(&event->mutex, NULL)) { + pthread_cond_destroy(&event->cond); free(event); return 0; } @@ -205,15 +206,16 @@ pthread_join(hCompressionThread, NULL); #endif } -#ifdef _WIN32 if (hCompressionThread) { +#ifdef _WIN32 CloseHandle(hCompressionThread); hCompressionThread = NULL; - } #else - hCompressionThread = 0; + pthread_detach(hCompressionThread); + hCompressionThread = 0; #endif + } SetNextOut(NULL, 0); SetNextIn(NULL, 0); return C_OK;