1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-28 23:14:57 +03:00

catalog: Fix initialization

Initialize mutex via xmlInitParser.

Fix some other initialization calls.
This commit is contained in:
Nick Wellnhofer
2024-06-15 20:34:07 +02:00
parent 898e5a1442
commit 84666581c2
4 changed files with 40 additions and 35 deletions

View File

@@ -27,6 +27,7 @@
#include <note.h>
#endif
#include "private/cata.h"
#include "private/dict.h"
#include "private/enc.h"
#include "private/globals.h"
@@ -592,6 +593,9 @@ xmlInitParser(void) {
xmlInitXPathInternal();
#endif
xmlInitIOCallbacks();
#ifdef LIBXML_CATALOG_ENABLED
xmlInitCatalogInternal();
#endif
xmlParserInnerInitialized = 1;
}
@@ -632,6 +636,7 @@ xmlCleanupParser(void) {
xmlCleanupCharEncodingHandlers();
#ifdef LIBXML_CATALOG_ENABLED
xmlCatalogCleanup();
xmlCleanupCatalogInternal();
#endif
#ifdef LIBXML_SCHEMAS_ENABLED
xmlSchemaCleanupTypes();