diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2006-06-29 11:50:18 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2006-06-29 11:50:18 +0000 |
commit | a8b5413a5ffe35dc06708c640d2a1a6cc004fe0e (patch) | |
tree | c0d5e67296e8f560ad800305635a488e489d36b7 /threads.c | |
parent | 2bdb12ff9fdb69169604fdf544e1026b2459aca1 (diff) | |
download | libxml2-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |