Bug 1001134 - "Gamepad service leaks windows if a page goes into bfcache". r=ted r=continuation

This commit is contained in:
Olli Pettay 2014-04-24 14:51:00 +02:00
parent f707178ed7
commit 2bf7b03799

View File

@ -1607,6 +1607,8 @@ nsGlobalWindow::FreeInnerObjects()
mAudioContexts.Clear();
#ifdef MOZ_GAMEPAD
DisableGamepadUpdates();
mHasGamepad = false;
mGamepads.Clear();
#endif
}