diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2021-07-16 14:32:36 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2021-07-16 20:24:48 +0200 |
commit | f08ef2fd6edea7a5776597045cb710c90f3ad7ca (patch) | |
tree | 4526c788109c60f4ca22300f939c2122eb1f63bb | |
parent | 65e884aa51dc585d0258f9eb87eb0207fa00d0dd (diff) |
vcl: check mpWindowImpl for nullptr.
Crash in calc's mouse capture / end tracking.
Change-Id: If5b4cded8ebfc04d1fcf645a7b74184532ab2338
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119069
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
-rw-r--r-- | vcl/source/window/mouse.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx index 513b186b2dc7..e1f9c9e6777e 100644 --- a/vcl/source/window/mouse.cxx +++ b/vcl/source/window/mouse.cxx @@ -467,7 +467,8 @@ void Window::ReleaseMouse() { ImplSVData* pSVData = ImplGetSVData(); pSVData->mpWinData->mpCaptureWin = nullptr; - mpWindowImpl->mpFrame->CaptureMouse( false ); + if (mpWindowImpl && mpWindowImpl->mpFrame) + mpWindowImpl->mpFrame->CaptureMouse( false ); ImplGenerateMouseMove(); } } |