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

Caolán McNamara caolanm at redhat.com
Tue Jan 10 12:55:02 UTC 2017


 svtools/source/graphic/grfmgr.cxx |   13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

New commits:
commit 11e5668f12565ad9b1acb5c0085653c7a22ca329
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jan 9 16:07:33 2017 +0000

    mpGlobalMgr has to exist at GraphicObject dtor time
    
    Change-Id: I75d82c041aa5a01bab3dceecaaa132ce9172862b
    Reviewed-on: https://gerrit.libreoffice.org/32899
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx
index 3ca4c73..1826e5f 100644
--- a/svtools/source/graphic/grfmgr.cxx
+++ b/svtools/source/graphic/grfmgr.cxx
@@ -124,15 +124,12 @@ GraphicObject::GraphicObject( const OString& rUniqueID ) :
 
 GraphicObject::~GraphicObject()
 {
-    if( mpMgr )
-    {
-        mpMgr->ImplUnregisterObj( *this );
+    mpMgr->ImplUnregisterObj( *this );
 
-        if (!mpGlobalMgr->ImplHasObjects())
-        {
-            delete mpGlobalMgr;
-            mpGlobalMgr = nullptr;
-        }
+    if (!mpGlobalMgr->ImplHasObjects())
+    {
+        delete mpGlobalMgr;
+        mpGlobalMgr = nullptr;
     }
 }
 


More information about the Libreoffice-commits mailing list