]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xmlpars.cpp
applied patch to prevent crashing when libxml DLL doesn't contain some symbols
[wxWidgets.git] / contrib / src / xml / xmlpars.cpp
index 978dab5fb1f3d0adcea6d35c3726765e21f8a790..7dec0e47bfc10ab8aa791bd5b44c8bad1ae78d18 100644 (file)
@@ -121,7 +121,10 @@ static void ReleaseLibxml()
 {
     if (gs_libxmlLoaded)
     {
 {
     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;
         wxDllLoader::UnloadLibrary(gs_libxmlDLL.Handle);
     }
     gs_libxmlLoaded = FALSE;