summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-06-06 17:36:30 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-06-06 17:36:30 +0100
commitbb8e05395ff1d3d103e1ce0d91697ef7cb12826d (patch)
treeadf3d5c7a12ea6c1bd2e896af26ecc38d314b39a
parentIntroduce AppInstance for correctly scoping otherwise global things (diff)
downloadproject2-bb8e05395ff1d3d103e1ce0d91697ef7cb12826d.tar.bz2
project2-bb8e05395ff1d3d103e1ce0d91697ef7cb12826d.tar.xz
project2-bb8e05395ff1d3d103e1ce0d91697ef7cb12826d.zip
Perform explicit init and tear down of libxml things
-rw-r--r--project2/xml/transformHtml.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/project2/xml/transformHtml.cpp b/project2/xml/transformHtml.cpp
index 2232a4f..6d1e925 100644
--- a/project2/xml/transformHtml.cpp
+++ b/project2/xml/transformHtml.cpp
@@ -86,8 +86,15 @@ class XmlTransformLoader : public TransformLoader::For<TransformXmlToHtml> {
public:
XmlTransformLoader()
{
+ xmlInitParser();
exsltRegisterAll();
}
+
+ ~XmlTransformLoader()
+ {
+ xsltCleanupGlobals();
+ xmlCleanupParser();
+ }
};
DECLARE_CUSTOM_COMPONENT_LOADER("TransformXmlToHtml", TransformXmlToHtml, XmlTransformLoader, TransformLoader)