summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/librcc.c4
-rw-r--r--src/rccxml.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librcc.c b/src/librcc.c
index 97725ec..41a49c8 100644
--- a/src/librcc.c
+++ b/src/librcc.c
@@ -138,7 +138,9 @@ void rccFree(void) {
}
rccEngineFree();
- rccXmlFree();
+ // Clean-up might cause problems if LibXML2 is also used by an application outside of LibXML2...
+ // According to LibXML2 developers, usage of this function is not advised, cleanup only should be performed on application exit, and is done libxml2 automatically.
+ //rccXmlFree();
rccTranslateFree();
rccPluginFree();
diff --git a/src/rccxml.c b/src/rccxml.c
index a864b36..82c3cd3 100644
--- a/src/rccxml.c
+++ b/src/rccxml.c
@@ -89,7 +89,6 @@ int rccXmlInit(int LoadConfiguration) {
rcc_engine *engine;
xmlInitParser();
- xmlInitCharEncodingHandlers();
xmlKeepBlanksDefault(0);
if (LoadConfiguration) {
@@ -243,7 +242,6 @@ void rccXmlFree() {
xmlctx = NULL;
}
- xmlCleanupCharEncodingHandlers();
xmlCleanupParser();
}