From 44e8b84cae75e1ee39a2a44001db9d981e59e000 Mon Sep 17 00:00:00 2001 From: Tero Ahola Date: Mon, 14 Nov 2011 15:27:01 +0100 Subject: 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 (cherry picked from commit 261bbb12003dab0e45b5814f85dd74aa64bcfb79) Change-Id: I261bbb12003dab0e45b5814f85dd74aa64bcfb79 --- src/widgets/styles/qwindowsvistastyle.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/widgets/styles/qwindowsvistastyle.cpp') 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; } -- cgit v1.2.3