Index: content/shell/renderer/test_runner/gamepad_controller.cc |
diff --git a/content/shell/renderer/test_runner/gamepad_controller.cc b/content/shell/renderer/test_runner/gamepad_controller.cc |
index e9704d51961aa6a5fd47452b944d5b925dcd2029..4637ab0fc1d2fc6c7c90fd6b4414492cd1e145bd 100644 |
--- a/content/shell/renderer/test_runner/gamepad_controller.cc |
+++ b/content/shell/renderer/test_runner/gamepad_controller.cc |
@@ -151,7 +151,9 @@ GamepadController::GamepadController() |
Reset(); |
} |
-GamepadController::~GamepadController() {} |
+GamepadController::~GamepadController() { |
+ StopIfObserving(); |
+} |
void GamepadController::Reset() { |
memset(&gamepads_, 0, sizeof(gamepads_)); |