summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles
diff options
context:
space:
mode:
authorTero Ahola <tero.ahola@digia.com>2011-11-14 15:27:01 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-15 18:33:58 +0100
commit44e8b84cae75e1ee39a2a44001db9d981e59e000 (patch)
tree8c02496bfdca3a4ca1f2eb8f938e77ed4f4c5b0d /src/widgets/styles
parent3d063ecc5f07342108b415d9e17908373cdc9de2 (diff)
Fixed memory leak in Windows Vista style widgets
The animations are now deleted in destruction of the Vista style. With the previous implementation the animations were not deleted for instance if you move mouse cursor off from a widget with hover animation (like QPushButton). Task-number: QTBUG-21532 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> (cherry picked from commit 261bbb12003dab0e45b5814f85dd74aa64bcfb79) Change-Id: I261bbb12003dab0e45b5814f85dd74aa64bcfb79
Diffstat (limited to 'src/widgets/styles')
-rw-r--r--src/widgets/styles/qwindowsvistastyle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/styles/qwindowsvistastyle.cpp b/src/widgets/styles/qwindowsvistastyle.cpp
index 025055c14b..c1f11d4132 100644
--- a/src/widgets/styles/qwindowsvistastyle.cpp
+++ b/src/widgets/styles/qwindowsvistastyle.cpp
@@ -2494,6 +2494,7 @@ QWindowsVistaStylePrivate::QWindowsVistaStylePrivate() :
QWindowsVistaStylePrivate::~QWindowsVistaStylePrivate()
{
+ qDeleteAll(animations);
delete m_treeViewHelper;
}