diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-29 12:33:22 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-29 12:34:07 +0200 |
commit | 30953637c9e5af91adcdba5264432336bfe02952 (patch) | |
tree | 8d1a4bcbba419c794865e97e4c8425b0b99ea116 | |
parent | ab0a5b7523e9c287ca09d8cf2cc39e0fbf676f5b (diff) |
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
-rw-r--r-- | sfx2/source/dialog/infobar.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx index 5ec640735c54..ff91cc64ee27 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) |