diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-03-24 13:36:57 +1000 |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-03-24 13:36:57 +1000 |
commit | 70fb72ca17b5176bb551a7ae9f2129b48496c635 (patch) | |
tree | d05adb7ef02543574a5bbda5635d5447e999583d /src/declarative/util/qdeclarativeanimation.cpp | |
parent | b888c9cca5ba2994344533c7602d22e1bc8e5db3 (diff) | |
download | qt4-tools-70fb72ca17b5176bb551a7ae9f2129b48496c635.tar.gz |
Fix memory leak.
Change-Id: I919935399ee1b0e505c85781d481d17345df25c9
Task-number: QT-4330
Reviewed-by: Michael Brasser
Diffstat (limited to 'src/declarative/util/qdeclarativeanimation.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativeanimation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativeanimation.cpp b/src/declarative/util/qdeclarativeanimation.cpp index ac9c3c0ba3..67461b040b 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; |