svtools/source/graphic/grfmgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit bd5ec81c78df81fb85a036d07cc4d60d01575fd0 Author: Caolán McNamara <caol...@redhat.com> Date: Mon Jan 9 16:06:47 2017 +0000 mpGlobalMgr is the only manager possible Change-Id: Ic7e20c9c198cfdab73647b009af3e269aabf680f Reviewed-on: https://gerrit.libreoffice.org/32898 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx index 003063d..3ca4c73 100644 --- a/svtools/source/graphic/grfmgr.cxx +++ b/svtools/source/graphic/grfmgr.cxx @@ -128,7 +128,7 @@ GraphicObject::~GraphicObject() { mpMgr->ImplUnregisterObj( *this ); - if( ( mpMgr == mpGlobalMgr ) && !mpGlobalMgr->ImplHasObjects() ) + if (!mpGlobalMgr->ImplHasObjects()) { delete mpGlobalMgr; mpGlobalMgr = nullptr;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits