Kaydet (Commit) 0b672686 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704748 Dereference after null check

Change-Id: I4dd13cb4a39422b26d4e695c1fbb739eaee96368
üst 7eaa311c
......@@ -100,8 +100,9 @@ void FuCopy::DoExecute( SfxRequest& rReq )
if( pFact )
{
AbstractCopyDlg* pDlg = pFact->CreateCopyDlg(NULL, aSet, mpDoc->GetColorList(), mpView );
if( pDlg )
{
if (!pDlg)
return;
sal_uInt16 nResult = pDlg->Execute();
switch( nResult )
......@@ -119,8 +120,7 @@ void FuCopy::DoExecute( SfxRequest& rReq )
}
return; // Cancel
}
delete( pDlg );
}
delete pDlg;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment