diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-03-24 03:36:57 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-03-24 03:36:57 (GMT) |
commit | 70fb72ca17b5176bb551a7ae9f2129b48496c635 (patch) | |
tree | d05adb7ef02543574a5bbda5635d5447e999583d /src/declarative | |
parent | b888c9cca5ba2994344533c7602d22e1bc8e5db3 (diff) | |
download | Qt-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/declarative')
-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 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; |