From 7981795a892349d41316daf222a3bf548102b482 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 12 Jan 2001 20:29:40 +0000 Subject: [PATCH 1/1] applied patch to prevent crashing when libxml DLL doesn't contain some symbols git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/xml/xmlpars.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.45.2