From 74bb6569b9ff3971a4aa5d6fab57d6baf357f570 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 12 Jan 2017 09:40:23 +0100 Subject: 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 --- src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/platformsupport/input') 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 points = m_handler->d->m_touchPoints; - const QList &lastPoints = m_handler->d->m_lastTouchPoints; + QList lastPoints = m_handler->d->m_lastTouchPoints; m_handler->d->m_mutex.unlock(); -- cgit v1.2.3