* xmlGlobalInitMutexDestroy * * Makes sure that the global initialization mutex is destroyed before * application termination. */
| 546 | * application termination. |
| 547 | */ |
| 548 | static void |
| 549 | xmlGlobalInitMutexDestroy(void) { |
| 550 | #ifdef HAVE_POSIX_THREADS |
| 551 | #elif defined HAVE_WIN32_THREADS |
| 552 | if (global_init_lock != NULL) { |
| 553 | DeleteCriticalSection(global_init_lock); |
| 554 | free(global_init_lock); |
| 555 | global_init_lock = NULL; |
| 556 | } |
| 557 | #endif |
| 558 | } |
| 559 | |
| 560 | /** |
| 561 | * xmlInitParser: |