summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-09-05 09:14:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-09-05 11:54:05 +0200
commit5291c2a2238829bb6e1854dc24b6fc6662b8e5e2 (patch)
tree572c8a437a06893798926df81bb27d0f46c8268c /vcl/source
parenta89b1884273a3bde1a38cd92148a09cdf1c3a058 (diff)
cid#1500642 silence Dereference before null check
Change-Id: If72495279b7fedd2e825ca6944fc822d80ad5f2e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139405 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/dialog.cxx1
1 files changed, 1 insertions, 0 deletions
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);