зеркало из https://github.com/mozilla/gecko-dev.git
fix for memory leak bug 24332
This commit is contained in:
Родитель
b3444d6801
Коммит
90364fa4e5
|
@ -2191,6 +2191,15 @@ nsTextFrame::SetSelected(nsIPresContext* aPresContext,
|
|||
}
|
||||
if (!details)
|
||||
frameState &= ~NS_FRAME_SELECTED_CONTENT;
|
||||
else
|
||||
{
|
||||
SelectionDetails *sdptr = details;
|
||||
while ((sdptr = details->mNext) != nsnull) {
|
||||
delete details;
|
||||
details = sdptr;
|
||||
}
|
||||
delete details;
|
||||
}
|
||||
}
|
||||
SetFrameState(frameState);
|
||||
if (found){ //if range contains this frame...
|
||||
|
|
|
@ -2191,6 +2191,15 @@ nsTextFrame::SetSelected(nsIPresContext* aPresContext,
|
|||
}
|
||||
if (!details)
|
||||
frameState &= ~NS_FRAME_SELECTED_CONTENT;
|
||||
else
|
||||
{
|
||||
SelectionDetails *sdptr = details;
|
||||
while ((sdptr = details->mNext) != nsnull) {
|
||||
delete details;
|
||||
details = sdptr;
|
||||
}
|
||||
delete details;
|
||||
}
|
||||
}
|
||||
SetFrameState(frameState);
|
||||
if (found){ //if range contains this frame...
|
||||
|
|
Загрузка…
Ссылка в новой задаче