diff options
author | Dominik Holland <dominik.holland@nokia.com> | 2010-11-09 14:21:38 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@nokia.com> | 2010-11-09 15:56:28 +0100 |
commit | 7c59ffa73a569cb18acb05a1ee6c566f4878a1e2 (patch) | |
tree | e24f144b39ceccefec950a867cd617e809a52598 /src/gui/kernel/qgesturemanager.cpp | |
parent | 198d903fa18d9f1d51615974d71de8236e97c2cd (diff) | |
download | qt4-tools-7c59ffa73a569cb18acb05a1ee6c566f4878a1e2.tar.gz |
Fixed random crash in QGestureManager.
When the cachedGestures are cleaned, the Gestures should be removed in all QSets first, before the Delete.
Task: QT-4013
Reviewed By: Frederik Gladhorn
Diffstat (limited to 'src/gui/kernel/qgesturemanager.cpp')
-rw-r--r-- | src/gui/kernel/qgesturemanager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qgesturemanager.cpp b/src/gui/kernel/qgesturemanager.cpp index 6dd8127690..5e9a0cba77 100644 --- a/src/gui/kernel/qgesturemanager.cpp +++ b/src/gui/kernel/qgesturemanager.cpp @@ -171,6 +171,10 @@ void QGestureManager::cleanupCachedGestures(QObject *target, Qt::GestureType typ foreach (QGesture *g, gestures) { m_deletedRecognizers.remove(g); m_gestureToRecognizer.remove(g); + m_maybeGestures.remove(g); + m_activeGestures.remove(g); + m_gestureOwners.remove(g); + m_gestureTargets.remove(g); } qDeleteAll(gestures); |