summaryrefslogtreecommitdiff
path: root/src/declarative/util/qdeclarativeanimation.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-03-24 13:36:57 +1000
committerMartin Jones <martin.jones@nokia.com>2011-03-24 13:36:57 +1000
commit70fb72ca17b5176bb551a7ae9f2129b48496c635 (patch)
treed05adb7ef02543574a5bbda5635d5447e999583d /src/declarative/util/qdeclarativeanimation.cpp
parentb888c9cca5ba2994344533c7602d22e1bc8e5db3 (diff)
downloadqt4-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.cpp2
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;