vcl/source/window/mouse.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit aa0a1222d63a0a1d995d4e2b08ea68f54f4abb7c Author: Michael Meeks <[email protected]> AuthorDate: Fri Jul 16 14:32:36 2021 +0100 Commit: Miklos Vajna <[email protected]> CommitDate: Fri Jul 16 17:16:58 2021 +0200 vcl: check mpWindowImpl for nullptr. Crash in calc's mouse capture / end tracking. Change-Id: If5b4cded8ebfc04d1fcf645a7b74184532ab2338 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119033 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx index 2a1583a3ba5c..c1a59bc0dc90 100644 --- a/vcl/source/window/mouse.cxx +++ b/vcl/source/window/mouse.cxx @@ -466,7 +466,8 @@ void Window::ReleaseMouse() { ImplSVData* pSVData = ImplGetSVData(); pSVData->mpWinData->mpCaptureWin = nullptr; - mpWindowImpl->mpFrame->CaptureMouse( false ); + if (mpWindowImpl && mpWindowImpl->mpFrame) + mpWindowImpl->mpFrame->CaptureMouse( false ); ImplGenerateMouseMove(); } } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
