diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-14 13:53:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-14 16:12:13 +0200 |
commit | 3c0938c9bb63fa65ea44439b4e838ed0d9fa1260 (patch) | |
tree | 869eb9ccc1d1092a6639ff03017da901e7a5d257 /vcl/source/window/winproc.cxx | |
parent | bf0a90f80a2c573d65d4795a07bd0b78be7a62e7 (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/source/window/winproc.cxx')
-rw-r--r-- | vcl/source/window/winproc.cxx | 2 |
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 ) |