зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1266466 - Fix missing call to parent Destroy function in Android's nsWindow. r=snorp
MozReview-Commit-ID: 3LH098M8Mdh
This commit is contained in:
Родитель
9191a8ed82
Коммит
4c6dbce80d
|
@ -1328,12 +1328,17 @@ nsWindow::Destroy(void)
|
|||
mGeckoViewSupport = nullptr;
|
||||
}
|
||||
|
||||
// Stuff below may release the last ref to this
|
||||
nsCOMPtr<nsIWidget> kungFuDeathGrip(this);
|
||||
|
||||
while (mChildren.Length()) {
|
||||
// why do we still have children?
|
||||
ALOG("### Warning: Destroying window %p and reparenting child %p to null!", (void*)this, (void*)mChildren[0]);
|
||||
mChildren[0]->SetParent(nullptr);
|
||||
}
|
||||
|
||||
nsBaseWidget::Destroy();
|
||||
|
||||
if (IsTopLevel())
|
||||
gTopLevelWindows.RemoveElement(this);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче