commit | df101d832da9db9efd59ab194b18ccc5a7274bd1 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Tue Jul 08 14:03:36 2003 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Tue Jul 08 14:03:36 2003 +0000 |
tree | 3511adf4e0483b25dcbb1f348c0363a13948e4a0 | |
parent | 2db8c125be777d642fc1143f23a77d8cf0aa4de1 [diff] [blame] |
fixes some problem when freeing unititialized mutexes Daniel * globals.c threads.c: fixes some problem when freeing unititialized mutexes Daniel
diff --git a/threads.c b/threads.c index 777339c..3a879fc 100644 --- a/threads.c +++ b/threads.c
@@ -134,6 +134,8 @@ void xmlFreeMutex(xmlMutexPtr tok) { + if (tok == NULL) return; + #ifdef HAVE_PTHREAD_H pthread_mutex_destroy(&tok->lock); #elif defined HAVE_WIN32_THREADS