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

Miklos Vajna vmiklos at collabora.co.uk
Wed Apr 29 03:35:12 PDT 2015


 sfx2/source/dialog/infobar.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 30953637c9e5af91adcdba5264432336bfe02952
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed Apr 29 12:33:22 2015 +0200

    SfxInfoBarContainerWindow: pInfoBar can be 0 here
    
    	0x00007ffff0b36bf0 in OutputDevice::disposeOnce (this=0x0) at /git/libreoffice/master/vcl/source/outdev/outdev.cxx:193
    	193         if ( mbDisposed )
    	(gdb) up
    	#1  0x00007ffff3c3d651 in SfxInfoBarContainerWindow::removeInfoBar (this=0x1f05b30, pInfoBar=0x0) at /git/libreoffice/master/sfx2/source/dialog/infobar.cxx:294
    	294         pInfoBar->disposeOnce();
    
    Change-Id: I7b5dfddea98d8ab3d4f7db3ef53660f91e5ad80b

diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx
index 5ec6407..ff91cc6 100644
--- a/sfx2/source/dialog/infobar.cxx
+++ b/sfx2/source/dialog/infobar.cxx
@@ -291,7 +291,8 @@ void SfxInfoBarContainerWindow::removeInfoBar(SfxInfoBarWindow* pInfoBar)
             break;
         }
     }
-    pInfoBar->disposeOnce();
+    if (pInfoBar)
+        pInfoBar->disposeOnce();
 
     long nY = 0;
     for (auto it = m_pInfoBars.begin(); it != m_pInfoBars.end(); ++it)


More information about the Libreoffice-commits mailing list