diff options
Diffstat (limited to 'chromium/ui/views/animation/animation_delegate_views.cc')
-rw-r--r-- | chromium/ui/views/animation/animation_delegate_views.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chromium/ui/views/animation/animation_delegate_views.cc b/chromium/ui/views/animation/animation_delegate_views.cc index 98ee17f8c14..541f94f5463 100644 --- a/chromium/ui/views/animation/animation_delegate_views.cc +++ b/chromium/ui/views/animation/animation_delegate_views.cc @@ -81,11 +81,14 @@ void AnimationDelegateViews::UpdateAnimationRunner( } void AnimationDelegateViews::ClearAnimationRunner() { + // `compositor_animation_runner_` holds a pointer owned by `container_`, so + // we need to release it before `container_` actually releases the memory it + // points to. + compositor_animation_runner_ = nullptr; // TODO(https://crbug.com/960621): make sure the container has a correct // compositor-assisted runner. if (container_) container_->SetAnimationRunner(nullptr); - compositor_animation_runner_ = nullptr; } } // namespace views |