Index: cc/input/top_controls_manager.cc |
diff --git a/cc/input/top_controls_manager.cc b/cc/input/top_controls_manager.cc |
index 79353f2b2d15e3f2e1f248560c0492e4d8426e21..e9722472454784c27d43d098496c9ad763fc2fb5 100644 |
--- a/cc/input/top_controls_manager.cc |
+++ b/cc/input/top_controls_manager.cc |
@@ -180,7 +180,9 @@ |
} |
void TopControlsManager::ResetAnimations() { |
- top_controls_animation_ = nullptr; |
+ if (top_controls_animation_) |
+ top_controls_animation_.reset(); |
+ |
animation_direction_ = NO_ANIMATION; |
} |