summaryrefslogtreecommitdiff
path: root/lotuswordpro/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-13 09:12:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-13 09:12:48 +0000
commit07679362a1efae9cd81e6c0ace8c198efa3b2b77 (patch)
tree68416d24132bc1671dd89c7793f60ba975844b76 /lotuswordpro/source
parent7e9857c2935bb2533806db4e71c6cd1e171c3478 (diff)
ofz#836 fix leak
Change-Id: Ifd818cdf81516bd449db14bb1e84ed508e4b7d96
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r--lotuswordpro/source/filter/lwptblformula.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx
index 7732d48153e7..5ec8fbab94f9 100644
--- a/lotuswordpro/source/filter/lwptblformula.cxx
+++ b/lotuswordpro/source/filter/lwptblformula.cxx
@@ -194,9 +194,9 @@ void LwpFormulaInfo::ReadExpression()
case TK_MAXIMUM:
case TK_AVERAGE:
{
- LwpFormulaFunc* pFunc = new LwpFormulaFunc(TokenType);
- ReadArguments(*pFunc);
- m_aStack.push_back(pFunc);
+ std::unique_ptr<LwpFormulaFunc> xFunc(new LwpFormulaFunc(TokenType));
+ ReadArguments(*xFunc);
+ m_aStack.push_back(xFunc.release());
}
break;