diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-07-04 18:51:07 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-07-04 21:52:12 +0200 |
commit | 70d9e2db8a53a994e323dbb07d42eaebaf5008af (patch) | |
tree | f9b7c5802282fe0e7fbc53ef40128c500fae8174 /l10ntools | |
parent | 9a6850ba8ef77e4ecf84ae0461b9aaeecaf30438 (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>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/treemerge.cxx | 3 |
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 ) |