1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

fixes some problem when freeing unititialized mutexes Daniel

* globals.c threads.c: fixes some problem when freeing unititialized
  mutexes
Daniel
This commit is contained in:
Daniel Veillard
2003-07-08 14:03:36 +00:00
parent 2db8c125be
commit df101d832d
3 changed files with 9 additions and 1 deletions

View File

@ -134,6 +134,8 @@ xmlNewMutex(void)
void
xmlFreeMutex(xmlMutexPtr tok)
{
if (tok == NULL) return;
#ifdef HAVE_PTHREAD_H
pthread_mutex_destroy(&tok->lock);
#elif defined HAVE_WIN32_THREADS