summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--l10ntools/source/treemerge.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/l10ntools/source/treemerge.cxx b/l10ntools/source/treemerge.cxx
index 65916d12d3e2..b6d246317b23 100644
--- a/l10ntools/source/treemerge.cxx
+++ b/l10ntools/source/treemerge.cxx
@@ -221,6 +221,9 @@ TreeParser::TreeParser(
TreeParser::~TreeParser()
{
+ // be sure m_pSource is freed
+ if (m_bIsInitialized)
+ xmlFreeDoc( m_pSource );
}
void TreeParser::Extract( const OString& rPOFile )