diff --git a/ChangeLog b/ChangeLog index d00d3131..60c61ae1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 29 13:51:12 CEST 2006 Daniel Veillard + + * threads.c: patch from Andrew W. Nosenko, xmlFreeRMutex forgot to + destroy the condition associated to the mutex. + Thu Jun 29 12:48:00 CEST 2006 Kasimier Buchcik * xpath.c: Fixed a double-free in xmlXPathCompOpEvalToBoolean(), diff --git a/threads.c b/threads.c index 90a461ae..7124bca3 100644 --- a/threads.c +++ b/threads.c @@ -319,8 +319,10 @@ xmlFreeRMutex(xmlRMutexPtr tok ATTRIBUTE_UNUSED) 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