diff options
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 eb5911544f..08884d8b2b 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, |