mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
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
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
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>
|
Thu Jun 29 12:48:00 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
|
||||||
|
|
||||||
* xpath.c: Fixed a double-free in xmlXPathCompOpEvalToBoolean(),
|
* xpath.c: Fixed a double-free in xmlXPathCompOpEvalToBoolean(),
|
||||||
|
@@ -319,8 +319,10 @@ xmlFreeRMutex(xmlRMutexPtr tok ATTRIBUTE_UNUSED)
|
|||||||
if (tok == NULL)
|
if (tok == NULL)
|
||||||
return;
|
return;
|
||||||
#ifdef HAVE_PTHREAD_H
|
#ifdef HAVE_PTHREAD_H
|
||||||
if (libxml_is_threaded != 0)
|
if (libxml_is_threaded != 0) {
|
||||||
pthread_mutex_destroy(&tok->lock);
|
pthread_mutex_destroy(&tok->lock);
|
||||||
|
pthread_cond_destroy(&tok->cv);
|
||||||
|
}
|
||||||
#elif defined HAVE_WIN32_THREADS
|
#elif defined HAVE_WIN32_THREADS
|
||||||
DeleteCriticalSection(&tok->cs);
|
DeleteCriticalSection(&tok->cs);
|
||||||
#elif defined HAVE_BEOS_THREADS
|
#elif defined HAVE_BEOS_THREADS
|
||||||
|
Reference in New Issue
Block a user