diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-11-10 11:50:11 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-11-10 13:02:55 (GMT) |
commit | 120199e1ba102fb294e580b2905e370c15ebf2d0 (patch) | |
tree | 40d70a28340e654cda6f73b5a0f8be94fc287fc3 /src | |
parent | 0673a90310fe8deae9583f0a4f19885995cfb6ce (diff) | |
download | Qt-120199e1ba102fb294e580b2905e370c15ebf2d0.zip Qt-120199e1ba102fb294e580b2905e370c15ebf2d0.tar.gz Qt-120199e1ba102fb294e580b2905e370c15ebf2d0.tar.bz2 |
Fix memory leak in QCursorData
QCursorData::cleanup() was never called on Symbian.
Task-number: QTBUG-22643
Reviewed-by: Murray Read
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qapplication_s60.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp index 46b16cb..fe239f5 100644 --- a/src/gui/kernel/qapplication_s60.cpp +++ b/src/gui/kernel/qapplication_s60.cpp @@ -65,6 +65,7 @@ #ifdef QT_GRAPHICSSYSTEM_RUNTIME #include "private/qgraphicssystem_runtime_p.h" #endif +#include "private/qcursor_p.h" #include "apgwgnam.h" // For CApaWindowGroupName #include <mdaaudiotoneplayer.h> // For CMdaAudioToneUtility @@ -2098,6 +2099,10 @@ void qt_cleanup() // Call EndFullScreen() to prevent confusing the system effect state machine. qt_endFullScreenEffect(); +#ifndef QT_NO_CURSOR + QCursorData::cleanup(); +#endif + if (S60->qtOwnsS60Environment) { // Restore the S60 framework trap handler. See qt_init(). User::SetTrapHandler(S60->s60InstalledTrapHandler); |