patch from Andrew W. Nosenko, xmlFreeRMutex forgot to destroy the
* threads.c: patch from Andrew W. Nosenko, xmlFreeRMutex forgot to
destroy the condition associated to the mutex.
Daniel
diff --git a/threads.c b/threads.c
index 90a461a..7124bca 100644
--- a/threads.c
+++ b/threads.c
@@ -319,8 +319,10 @@
if (tok == NULL)
return;
#ifdef HAVE_PTHREAD_H
- if (libxml_is_threaded != 0)
+ if (libxml_is_threaded != 0) {
pthread_mutex_destroy(&tok->lock);
+ pthread_cond_destroy(&tok->cv);
+ }
#elif defined HAVE_WIN32_THREADS
DeleteCriticalSection(&tok->cs);
#elif defined HAVE_BEOS_THREADS