Bug 781883 - Ensure the GeckoApp unregisters itself as a tab listener on teardown, or it ends up getting registered multiple times. r=sriram

This commit is contained in:
Kartikaya Gupta 2012-08-27 16:44:27 -04:00
parent a5b10fa8b2
commit 49da98a0d3

View File

@ -2167,6 +2167,8 @@ abstract public class GeckoApp
if (mBatteryReceiver != null)
mBatteryReceiver.unregisterFor(mAppContext);
Tabs.unregisterOnTabsChangedListener(this);
((GeckoApplication) getApplication()).removeApplicationLifecycleCallbacks(this);
}