diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-10 07:33:40 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-10 08:15:32 +0200 |
commit | 6b28f7d3bcc782f2f443ee6cb99f78f1c2c5bb97 (patch) | |
tree | 07ccaf81c572f98c036e51fdb6c5e75286e7ef77 /sc/source/core/data/conditio.cxx | |
parent | 79a4d09ac2e5daaad29c10b39d34ff0f09d1d9ad (diff) |
Lsan: fix memory leak in conditio.cxx
My test file leaks 9MB during import with that.
Change-Id: Ie7aba31878721ad8caef1e301a6b54a42a8c0c54
Diffstat (limited to 'sc/source/core/data/conditio.cxx')
-rw-r--r-- | sc/source/core/data/conditio.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index 551da4c1394d..43dc94eddb54 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -336,6 +336,7 @@ void ScConditionEntry::Compile( const OUString& rExpr1, const OUString& rExpr2, if ( !rExpr1.isEmpty() ) { + delete pFormula1; aComp.SetGrammar( eGrammar1 ); if ( mpDoc->IsImportingXML() && !bTextToReal ) { @@ -373,6 +374,7 @@ void ScConditionEntry::Compile( const OUString& rExpr1, const OUString& rExpr2, if ( !rExpr2.isEmpty() ) { + delete pFormula2; aComp.SetGrammar( eGrammar2 ); if ( mpDoc->IsImportingXML() && !bTextToReal ) { |