Kaydet (Commit) 4e0ac535 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1400531 Dereference before null check

Change-Id: Iff64a2dd599c6881e92e0cf49a0f535104a49ac1
üst 82f65d57
...@@ -437,12 +437,7 @@ void SwFlyFrame::FinitDrawObj() ...@@ -437,12 +437,7 @@ void SwFlyFrame::FinitDrawObj()
} }
} }
} }
if(!pFormat)
{
GetVirtDrawObj()->SetUserCall(nullptr);
delete GetVirtDrawObj();
return;
}
bool bOtherFramesAround(false); bool bOtherFramesAround(false);
SwFlyDrawContact* pContact(nullptr); SwFlyDrawContact* pContact(nullptr);
pFormat->CallSwClientNotify(sw::KillDrawHint(this, bOtherFramesAround, pContact)); pFormat->CallSwClientNotify(sw::KillDrawHint(this, bOtherFramesAround, pContact));
......
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