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: I261bbb12003dab0e45b5814f85dd74aa64bcfb79bb10
parent
3d063ecc5f
commit
44e8b84cae
|
|
@ -2494,6 +2494,7 @@ QWindowsVistaStylePrivate::QWindowsVistaStylePrivate() :
|
|||
|
||||
QWindowsVistaStylePrivate::~QWindowsVistaStylePrivate()
|
||||
{
|
||||
qDeleteAll(animations);
|
||||
delete m_treeViewHelper;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue