[Libreoffice-commits] core.git: l10ntools/source
Julien Nabet
serval2412 at yahoo.fr
Wed May 8 11:54:16 PDT 2013
l10ntools/source/propmerge.cxx | 1 +
l10ntools/source/stringmerge.cxx | 1 +
2 files changed, 2 insertions(+)
New commits:
commit 9210f1a50a374b824f02fb43a57cdbbbb714d26c
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Wed May 8 20:53:42 2013 +0200
coverity#1019372/373: Resource leaks
Change-Id: I8d1facfa027701a4f249f14392f9b204e92180be
diff --git a/l10ntools/source/propmerge.cxx b/l10ntools/source/propmerge.cxx
index cdbe9d2..ee715f7 100644
--- a/l10ntools/source/propmerge.cxx
+++ b/l10ntools/source/propmerge.cxx
@@ -179,6 +179,7 @@ void PropParser::Merge( const OString &rMergeSrc, const OString &rDestinationFil
<< "language of Mergedata file: "
<< m_sLang.getStr() << " - "
<< vLanguages[0].getStr() << std::endl;
+ delete pMergeDataFile;
return;
}
}
diff --git a/l10ntools/source/stringmerge.cxx b/l10ntools/source/stringmerge.cxx
index 6ceb4b7..34c978b 100644
--- a/l10ntools/source/stringmerge.cxx
+++ b/l10ntools/source/stringmerge.cxx
@@ -107,6 +107,7 @@ void StringParser::Merge(
<< "language of Mergedata file: "
<< m_sLang.getStr() << " - "
<< vLanguages[0].getStr() << std::endl;
+ delete pMergeDataFile;
return;
}
}
More information about the Libreoffice-commits
mailing list