Bug 688208 - nsWindow should call super::OnDestroy [r=mfinkle]
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 22 Nov 2011 15:29:54 -0500
changeset 83836 d34c48393e3b8c14cd4835b9b3ba77ef52105c01
parent 83835 21150b6244078189ab25a75c40e587418a0a0f43
child 83837 d10af1d1d98583a021ee89bac1ecf526c22e451a
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs688208
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 688208 - nsWindow should call super::OnDestroy [r=mfinkle]
widget/src/android/nsWindow.cpp
--- a/widget/src/android/nsWindow.cpp
+++ b/widget/src/android/nsWindow.cpp
@@ -280,16 +280,18 @@ nsWindow::Destroy(void)
     }
 
     if (IsTopLevel())
         gTopLevelWindows.RemoveElement(this);
 
     if (mParent)
         mParent->mChildren.RemoveElement(this);
 
+    nsBaseWidget::OnDestroy();
+
     return NS_OK;
 }
 
 NS_IMETHODIMP
 nsWindow::ConfigureChildren(const nsTArray<nsIWidget::Configuration>& config)
 {
     for (PRUint32 i = 0; i < config.Length(); ++i) {
         nsWindow *childWin = (nsWindow*) config[i].mChild;