Index: ui/gfx/compositor/layer_animator.cc |
diff --git a/ui/gfx/compositor/layer_animator.cc b/ui/gfx/compositor/layer_animator.cc |
index f98904cfd22c99c710f45b573da2cccc1e220266..cc10f04ff949cafd6b78bdd3915ceac290ebff5b 100644 |
--- a/ui/gfx/compositor/layer_animator.cc |
+++ b/ui/gfx/compositor/layer_animator.cc |
@@ -396,6 +396,8 @@ void LayerAnimator::ImmediatelySetNewTarget(LayerAnimationSequence* sequence) { |
const bool abort = false; |
RemoveAllAnimationsWithACommonProperty(sequence, abort); |
scoped_ptr<LayerAnimationSequence> removed(RemoveAnimation(sequence)); |
+ if (!removed.get()) |
+ removed.reset(sequence); |
sky
2012/02/09 03:48:56
Add a comment here.
|
sequence->Progress(sequence->duration(), delegate()); |
} |