summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-07-04 18:51:07 +0200
committerJulien Nabet <serval2412@yahoo.fr>2019-07-04 21:52:12 +0200
commit70d9e2db8a53a994e323dbb07d42eaebaf5008af (patch)
treef9b7c5802282fe0e7fbc53ef40128c500fae8174
parent9a6850ba8ef77e4ecf84ae0461b9aaeecaf30438 (diff)
cid#1448320: Resource leak in object (l10ntools/treemerge)
Change-Id: I9d09d690e003d73878ef2e30da11cf079d0db441 Reviewed-on: https://gerrit.libreoffice.org/75098 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-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 )