diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-06-06 17:36:30 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-06-06 17:36:30 +0100 |
commit | bb8e05395ff1d3d103e1ce0d91697ef7cb12826d (patch) | |
tree | adf3d5c7a12ea6c1bd2e896af26ecc38d314b39a | |
parent | Introduce AppInstance for correctly scoping otherwise global things (diff) | |
download | project2-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.cpp | 7 |
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) |