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>bb10
parent
f874b6e995
commit
74bb6569b9
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue