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
bb10
Tero Ahola 2011-11-14 15:27:01 +01:00 committed by Qt by Nokia
parent 3d063ecc5f
commit 44e8b84cae
1 changed files with 1 additions and 0 deletions

View File

@ -2494,6 +2494,7 @@ QWindowsVistaStylePrivate::QWindowsVistaStylePrivate() :
QWindowsVistaStylePrivate::~QWindowsVistaStylePrivate()
{
qDeleteAll(animations);
delete m_treeViewHelper;
}