summaryrefslogtreecommitdiff
path: root/threads.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2006-06-29 11:50:18 +0000
committerDaniel Veillard <veillard@src.gnome.org>2006-06-29 11:50:18 +0000
commita8b5413a5ffe35dc06708c640d2a1a6cc004fe0e (patch)
treec0d5e67296e8f560ad800305635a488e489d36b7 /threads.c
parent2bdb12ff9fdb69169604fdf544e1026b2459aca1 (diff)
downloadlibxml2-a8b5413a5ffe35dc06708c640d2a1a6cc004fe0e.tar.gz
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
Diffstat (limited to 'threads.c')
-rw-r--r--threads.c4
1 files changed, 3 insertions, 1 deletions
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