X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6afafc42fcf42ce84c9e1c0a7c00d3a0376d1aef..7981795a892349d41316daf222a3bf548102b482:/contrib/src/xml/xmlpars.cpp?ds=inline diff --git a/contrib/src/xml/xmlpars.cpp b/contrib/src/xml/xmlpars.cpp index 978dab5fb1..7dec0e47bf 100644 --- a/contrib/src/xml/xmlpars.cpp +++ b/contrib/src/xml/xmlpars.cpp @@ -121,7 +121,10 @@ static void ReleaseLibxml() { if (gs_libxmlLoaded) { - gs_libxmlDLL.xmlCleanupParser(); + // Check for CleanupParser ..may have failed before initialised + // during LOAD_SYMBOL in LoadLibxml() + if (gs_libxmlDLL.xmlCleanupParser) + gs_libxmlDLL.xmlCleanupParser(); wxDllLoader::UnloadLibrary(gs_libxmlDLL.Handle); } gs_libxmlLoaded = FALSE;