[Libreoffice-commits] core.git: xmloff/source

Caolán McNamara caolanm at redhat.com
Sun Jan 11 12:35:36 PST 2015


 xmloff/source/core/xmlimp.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5e6a4591d31619f9bf32a9891c59a6dcc3af80b5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Jan 11 16:26:23 2015 +0000

    LeakSanitizer: leak detected in ooo56669-1.odt
    
    Change-Id: Ifdd98068762762316dbfd50fb465ed3c970f53d9

diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 86e6b86..a30ad8f 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -443,6 +443,7 @@ SvXMLImport::~SvXMLImport() throw ()
     delete mpNamespaceMap;
     delete mpUnitConv;
     delete mpEventImportHelper;
+    delete mpFastContexts;
     if( mpContexts )
     {
         while( !mpContexts->empty() )
@@ -463,8 +464,7 @@ SvXMLImport::~SvXMLImport() throw ()
     delete mpNumImport;
     delete mpProgressBarHelper;
 
-    if( mpImpl )
-        delete mpImpl;
+    delete mpImpl;
 
     if (mxEventListener.is() && mxModel.is())
         mxModel->removeEventListener(mxEventListener);


More information about the Libreoffice-commits mailing list