summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-03-24 03:36:57 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-03-24 03:36:57 (GMT)
commit70fb72ca17b5176bb551a7ae9f2129b48496c635 (patch)
treed05adb7ef02543574a5bbda5635d5447e999583d /src
parentb888c9cca5ba2994344533c7602d22e1bc8e5db3 (diff)
downloadQt-70fb72ca17b5176bb551a7ae9f2129b48496c635.zip
Qt-70fb72ca17b5176bb551a7ae9f2129b48496c635.tar.gz
Qt-70fb72ca17b5176bb551a7ae9f2129b48496c635.tar.bz2
Fix memory leak.
Change-Id: I919935399ee1b0e505c85781d481d17345df25c9 Task-number: QT-4330 Reviewed-by: Michael Brasser
Diffstat (limited to 'src')
-rw-r--r--src/declarative/util/qdeclarativeanimation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativeanimation.cpp b/src/declarative/util/qdeclarativeanimation.cpp
index ac9c3c0..67461b0 100644
--- a/src/declarative/util/qdeclarativeanimation.cpp
+++ b/src/declarative/util/qdeclarativeanimation.cpp
@@ -2765,6 +2765,8 @@ void QDeclarativeParentAnimation::transition(QDeclarativeStateActions &actions,
d->endAction->setAnimAction(d->via ? viaData : data, QActionAnimation::DeleteWhenStopped);
d->startAction->setAnimAction(d->via ? data : 0, QActionAnimation::DeleteWhenStopped);
}
+ if (!d->via)
+ delete viaData;
} else {
delete data;
delete viaData;