From a8b5413a5ffe35dc06708c640d2a1a6cc004fe0e Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 29 Jun 2006 11:50:18 +0000 Subject: 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 --- threads.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'threads.c') 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 -- cgit v1.2.1