From 88d2c3f243ff9555492a925ebdb612d9e8bfa87a Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Sun, 4 Apr 2010 21:45:37 +0000 Subject: Fixes leak in boundsanimator. BUG=none TEST=none TBR=jcivelli@chromium.org Review URL: http://codereview.chromium.org/1576017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43592 0039d316-1c4b-4281-b951-d872f2087c98 --- views/animation/bounds_animator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views') diff --git a/views/animation/bounds_animator.cc b/views/animation/bounds_animator.cc index 3a88242..65ba415 100644 --- a/views/animation/bounds_animator.cc +++ b/views/animation/bounds_animator.cc @@ -28,7 +28,7 @@ BoundsAnimator::~BoundsAnimator() { // Delete all the animations, but don't remove any child views. We assume the // view owns us and is going to be deleted anyway. for (ViewToDataMap::iterator i = data_.begin(); i != data_.end(); ++i) - delete i->second.animation; + CleanupData(&(i->second)); } void BoundsAnimator::AnimateViewTo(View* view, -- cgit v1.1