Kaydet (Commit) 6c17bda9 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#708922 Use after free

Change-Id: Ied0f1dd16b7f681290c707f1aeb2d1d115612629
üst 3e8a695b
......@@ -2513,7 +2513,11 @@ void SwCrsrShell::_ParkPams( SwPaM* pDelRg, SwShellCrsr** ppDelRing )
}
if( bDelete )
{
if (pTmp == pTmpDel)
pTmp = 0;
delete pTmpDel; // invalidate old area
}
else
{
pTmpDel->DeleteMark();
......
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