lotuswordpro/source/filter/lwptblformula.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 07679362a1efae9cd81e6c0ace8c198efa3b2b77
Author: Caolán McNamara <caol...@redhat.com>
Date:   Mon Mar 13 09:12:05 2017 +0000

    ofz#836 fix leak
    
    Change-Id: Ifd818cdf81516bd449db14bb1e84ed508e4b7d96

diff --git a/lotuswordpro/source/filter/lwptblformula.cxx 
b/lotuswordpro/source/filter/lwptblformula.cxx
index 7732d48..5ec8fba 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;
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to