summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)