diff options
author | Andy Shaw <andy.shaw@qt.io> | 2018-10-17 14:54:43 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2019-03-19 10:41:26 +0000 |
commit | 1320b2f64412f0d86bd09c66c22df845e13a94a1 (patch) | |
tree | 3dc5a7b73ce6044379f4bec9337c91232744effd /INSTALL | |
parent | 01380dc2673d1aecc3e216fff84da76223e447d7 (diff) |
Fix memory leak when unregistering a gesture recognizer
When a gesture was unrecognized, then it would add itself to the
obsolete gestures hash. This was cleaned up only on application exit,
but as the unregister call happens whenever a widget that had registered
gestures was deleted then the hash could grow quite considerably.
In order to ensure the original intention of the code here, we only
call unregisterGestureRecognizer() when there is a QGestureManager in
place to call it on. Otherwise it would create a memory leak in itself.
Change-Id: I2342f3f737b28be4af7ed531d83f02197eb66c0e
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'INSTALL')
0 files changed, 0 insertions, 0 deletions