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

Caolán McNamara caolanm at redhat.com
Sat Feb 16 15:43:00 PST 2013


 sfx2/source/appl/sfxhelp.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 2e367c0ae9a91a428222d229869785b26b739a63
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Feb 16 23:38:46 2013 +0000

    coverity#441015 Use after free
    
    Change-Id: Iba7b3b2969525bbb8315452962556d08773e04fd

diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index 5a995ec..07b6781 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -578,7 +578,10 @@ SfxHelpWindow_Impl* impl_createHelp(Reference< XFrame >& rHelpTask   ,
     }
 
     if (!xHelpContent.is())
+    {
         delete pHelpWindow;
+        return NULL;
+    }
 
     xHelpContent->setName(OUString("OFFICE_HELP"));
 


More information about the Libreoffice-commits mailing list