vcl/source/window/window.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 5e2d6b4327c736b9fe375fd2f72259945b27bde3 Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Fri Mar 11 17:23:43 2022 +0000 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Wed Mar 16 17:29:15 2022 +0100 Avoid segv when co-editing around SvxColorTabPage. vcl::Window::ImplCallDeactivateListeners(vcl::Window*) vcl/source/window/window.cxx:3403 (discriminator 2) vcl::Window::ImplCallDeactivateListeners(vcl::Window*) vcl/source/window/window.cxx:3404 ... vcl::Window::ImplCallDeactivateListeners(vcl::Window*) vcl/source/window/window.cxx:3404 vcl::Window::ImplAsyncFocusHdl(void*) include/rtl/ref.hxx:112 ... Dialog::Execute() vcl/source/window/dialog.cxx:1056 virtual thunk to SalInstanceDialog::run() vcl/source/app/salvtables.cxx:4924 AbstractSvxNameDialog_Impl::Execute() cui/source/factory/dlgfact.cxx:222 SvxColorTabPage::ClickAddHdl_Impl(weld::Button&) include/rtl/ref.hxx:192 Change-Id: I12a78d65a8e7b8b728dde84f7c51cc19005c9aa6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131398 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Gökay ŞATIR <gokaysa...@collabora.com> diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index c1e3b1a01284..39c8c3b066ad 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3403,7 +3403,8 @@ void Window::ImplCallDeactivateListeners( vcl::Window *pNew ) // #100759#, avoid walking the wrong frame's hierarchy // eg, undocked docking windows (ImplDockFloatWin) - if ( ImplGetParent() && mpWindowImpl->mpFrameWindow == ImplGetParent()->mpWindowImpl->mpFrameWindow ) + if ( ImplGetParent() && !ImplGetParent()->IsDisposed() && + mpWindowImpl->mpFrameWindow == ImplGetParent()->mpWindowImpl->mpFrameWindow ) ImplGetParent()->ImplCallDeactivateListeners( pNew ); } }