diff options
author | Gunnar Sletta <gunnar@sletta.org> | 2017-01-12 09:40:23 +0100 |
---|---|---|
committer | Gunnar Sletta <gunnar@crimson.no> | 2017-03-03 11:55:46 +0000 |
commit | 74bb6569b9ff3971a4aa5d6fab57d6baf357f570 (patch) | |
tree | 08a0af3f36978eac272c876ea127b35ce8ed6dcb /src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp | |
parent | f874b6e995646aaa7b43758ef2fe03ea1f60640b (diff) |
Fix another race in the filtered touch implementation
The lastPoints is used outside of the mutex-locked area, so of course
it cannot be a reference.
Change-Id: Ic69f9acd643366f8086e96b026a47d5de40cd77b
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp')
-rw-r--r-- | src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp b/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp index 11f7311bb7..8cce403b31 100644 --- a/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp +++ b/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp @@ -883,7 +883,7 @@ void QEvdevTouchScreenHandlerThread::filterAndSendTouchPoints() } QList<QWindowSystemInterface::TouchPoint> points = m_handler->d->m_touchPoints; - const QList<QWindowSystemInterface::TouchPoint> &lastPoints = m_handler->d->m_lastTouchPoints; + QList<QWindowSystemInterface::TouchPoint> lastPoints = m_handler->d->m_lastTouchPoints; m_handler->d->m_mutex.unlock(); |