summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-14 13:53:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-14 16:12:13 +0200
commit3c0938c9bb63fa65ea44439b4e838ed0d9fa1260 (patch)
tree869eb9ccc1d1092a6639ff03017da901e7a5d257 /vcl
parentbf0a90f80a2c573d65d4795a07bd0b78be7a62e7 (diff)
tdf#142393 crash on filter by color dropdownlist (gen)
the frame/window can become disposed during the early stages of this method Change-Id: I974cbeefa75a3b5274e397a6da70db8b7cf73528 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117157 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/winproc.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index 80e306b17625..0504ab4c7df1 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -509,6 +509,8 @@ bool ImplHandleMouseEvent( const VclPtr<vcl::Window>& xWindow, MouseNotifyEvent
pMouseDownWin->ImplGetFrameData()->mbStartDragCalled = true;
}
+ if (xWindow->isDisposed())
+ return true;
// test for mouseleave and mouseenter
VclPtr<vcl::Window> pMouseMoveWin = pWinFrameData->mpMouseMoveWin;
if ( pChild != pMouseMoveWin )