Kaydet (Commit) 6b431b1f authored tarafından Chris Sherlock's avatar Chris Sherlock

coverity#708922 Use after free

Change-Id: I54c098ca4744d33d2f8e1a7799ba6bd5620ed987
üst f0bfee74
......@@ -2511,8 +2511,9 @@ void SwCrsrShell::_ParkPams( SwPaM* pDelRg, SwShellCrsr** ppDelRing )
}
pTmpDel = 0;
}
if( bGoNext )
if( bGoNext && !bDelete )
pTmp = (SwPaM*)pTmp->GetNext();
} while( !bGoNext || *ppDelRing != pTmp );
}
......
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