summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTero Ahola <tero.ahola@digia.com>2011-11-14 14:27:01 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-11-14 14:27:01 (GMT)
commit261bbb12003dab0e45b5814f85dd74aa64bcfb79 (patch)
tree7a037c2897c4aced070bacc22a4ccd043fb5e760
parent11a6d868b5613dd7fdbef02198aaf9566fcd1f17 (diff)
downloadQt-261bbb12003dab0e45b5814f85dd74aa64bcfb79.zip
Qt-261bbb12003dab0e45b5814f85dd74aa64bcfb79.tar.gz
Qt-261bbb12003dab0e45b5814f85dd74aa64bcfb79.tar.bz2
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>
-rw-r--r--src/gui/styles/qwindowsvistastyle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/styles/qwindowsvistastyle.cpp b/src/gui/styles/qwindowsvistastyle.cpp
index 5525468..8051014 100644
--- a/src/gui/styles/qwindowsvistastyle.cpp
+++ b/src/gui/styles/qwindowsvistastyle.cpp
@@ -2508,6 +2508,7 @@ QWindowsVistaStylePrivate::QWindowsVistaStylePrivate() :
QWindowsVistaStylePrivate::~QWindowsVistaStylePrivate()
{
+ qDeleteAll(animations);
delete m_treeViewHelper;
}