Index: content/renderer/gamepad_shared_memory_reader.cc |
diff --git a/content/renderer/gamepad_shared_memory_reader.cc b/content/renderer/gamepad_shared_memory_reader.cc |
index 5f8d31aa5705d988c76c1535da6acfaf26bad1d3..7040a9b6eeda60a92dea161fd1b91d281095baeb 100644 |
--- a/content/renderer/gamepad_shared_memory_reader.cc |
+++ b/content/renderer/gamepad_shared_memory_reader.cc |
@@ -105,6 +105,7 @@ void GamepadSharedMemoryReader::SampleGamepads(blink::WebGamepads& gamepads) { |
} |
GamepadSharedMemoryReader::~GamepadSharedMemoryReader() { |
+ StopIfObserving(); |
} |
bool GamepadSharedMemoryReader::OnControlMessageReceived( |