Commit a8b5413a authored by Daniel Veillard's avatar Daniel Veillard

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
parent 2bdb12ff
Thu Jun 29 13:51:12 CEST 2006 Daniel Veillard <daniel@veillard.com>
* 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 <libxml2-cvs@cazic.net>
* xpath.c: Fixed a double-free in xmlXPathCompOpEvalToBoolean(),
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment