зеркало из https://github.com/mozilla/gecko-dev.git
Fix leaks. r=jag, sr=blake
This commit is contained in:
Родитель
139f20b5c0
Коммит
7aeb4a62a5
|
@ -9408,6 +9408,9 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
|
|||
DeletingFrameSubtree(aPresContext, shell, frameManager, placeholderFrame);
|
||||
rv = frameManager->RemoveFrame(aPresContext, *shell, parentFrame,
|
||||
nsnull, placeholderFrame);
|
||||
|
||||
// Destroy the real frame.
|
||||
childFrame->Destroy(aPresContext);
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9408,6 +9408,9 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
|
|||
DeletingFrameSubtree(aPresContext, shell, frameManager, placeholderFrame);
|
||||
rv = frameManager->RemoveFrame(aPresContext, *shell, parentFrame,
|
||||
nsnull, placeholderFrame);
|
||||
|
||||
// Destroy the real frame.
|
||||
childFrame->Destroy(aPresContext);
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -156,6 +156,8 @@ nsPopupSetFrame::Destroy(nsIPresContext* aPresContext)
|
|||
nsPopupFrameList* curFrame = mPopupList;
|
||||
while (curFrame) {
|
||||
nsPopupFrameList* temp = curFrame;
|
||||
if (curFrame->mPopupFrame)
|
||||
curFrame->mPopupFrame->Destroy(aPresContext);
|
||||
curFrame = curFrame->mNextPopup;
|
||||
temp->mNextPopup = nsnull;
|
||||
delete temp;
|
||||
|
|
Загрузка…
Ссылка в новой задаче