CID 1210936: use after free.
This commit is contained in:
@@ -2601,10 +2601,10 @@ TermView::_AddHighlight(Highlight* highlight)
|
|||||||
void
|
void
|
||||||
TermView::_RemoveHighlight(Highlight* highlight)
|
TermView::_RemoveHighlight(Highlight* highlight)
|
||||||
{
|
{
|
||||||
fHighlights.RemoveItem(highlight);
|
|
||||||
|
|
||||||
if (!highlight->IsEmpty())
|
if (!highlight->IsEmpty())
|
||||||
_InvalidateTextRange(highlight->Start(), highlight->End());
|
_InvalidateTextRange(highlight->Start(), highlight->End());
|
||||||
|
|
||||||
|
fHighlights.RemoveItem(highlight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user