diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-11-08 10:30:39 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-11-08 10:48:15 (GMT) |
commit | 345c3f3502832e4850a6d9ea330ddca0c6e9c8bd (patch) | |
tree | a157f0470cdcfc17233df79ee6678eb1ec36548c /src/gui/styles | |
parent | f5b50368ae8ea7e9b1bf3ff6641d665389c6271b (diff) | |
download | Qt-345c3f3502832e4850a6d9ea330ddca0c6e9c8bd.zip Qt-345c3f3502832e4850a6d9ea330ddca0c6e9c8bd.tar.gz Qt-345c3f3502832e4850a6d9ea330ddca0c6e9c8bd.tar.bz2 |
Fix memory leak in S60Style
The m_animations contents were never deleted.
Task-number: QTBUG-22603
Reviewed-by: Sami Merila
Diffstat (limited to 'src/gui/styles')
-rw-r--r-- | src/gui/styles/qs60style_s60.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style_s60.cpp b/src/gui/styles/qs60style_s60.cpp index eb59115..08884d8 100644 --- a/src/gui/styles/qs60style_s60.cpp +++ b/src/gui/styles/qs60style_s60.cpp @@ -1347,7 +1347,9 @@ QS60StylePrivate::QS60StylePrivate() void QS60StylePrivate::removeAnimations() { //currently only one animation in the list. - m_animations()->removeFirst(); + if (!m_animations()->isEmpty()) { + delete m_animations()->takeFirst(); + } } QColor QS60StylePrivate::s60Color(QS60StyleEnums::ColorLists list, |