mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
Bug 1313585 - Part 1: Removing gamepads while nsGlobalWindow is removed in GamepadManager; r=lenzak800,qdot
MozReview-Commit-ID: 8kh0hyqzOyW --HG-- extra : rebase_source : 51f3bbf930f5d8eb5a53b83ca47600d26346599c
This commit is contained in:
parent
39c2a3224e
commit
7331dee69c
@ -177,6 +177,10 @@ GamepadManager::RemoveListener(nsGlobalWindow* aWindow)
|
||||
return; // doesn't exist
|
||||
}
|
||||
|
||||
for (auto iter = mGamepads.Iter(); !iter.Done(); iter.Next()) {
|
||||
aWindow->RemoveGamepad(iter.Key());
|
||||
}
|
||||
|
||||
mListeners.RemoveElement(aWindow);
|
||||
|
||||
if (mListeners.IsEmpty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user