From 5291c2a2238829bb6e1854dc24b6fc6662b8e5e2 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 5 Sep 2022 09:14:35 +0100 Subject: cid#1500642 silence Dereference before null check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If72495279b7fedd2e825ca6944fc822d80ad5f2e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139405 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/window/dialog.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl/source') diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 91f5a65b4054..fd6fb710c0af 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -1163,6 +1163,7 @@ void Dialog::EndDialog( tools::Long nResult ) if ( mpDialogImpl->mbStartedModal ) ImplEndExecuteModal(); + // coverity[check_after_deref] - ImplEndExecuteModal might trigger destruction of mpDialogImpl if ( mpDialogImpl && mpDialogImpl->maEndCtx.isSet() ) { auto fn = std::move(mpDialogImpl->maEndCtx.maEndDialogFn); -- cgit