eglfs_kms: initialize m_deviceListener
If QT_QPA_EGLFS_HIDECURSOR was enabled, m_deviceListener was never initialized, which caused segfault in the destructor. Task-number: QTBUG-71507 Change-Id: Id8b17f5312073249cd12995317213fd746753521 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
1b9af84c1b
commit
c9d18d4a9c
@ -71,6 +71,7 @@ QEglFSKmsGbmCursor::QEglFSKmsGbmCursor(QEglFSKmsGbmScreen *screen)
|
|||||||
, m_bo(nullptr)
|
, m_bo(nullptr)
|
||||||
, m_cursorImage(0, 0, 0, 0, 0, 0)
|
, m_cursorImage(0, 0, 0, 0, 0, 0)
|
||||||
, m_state(CursorPendingVisible)
|
, m_state(CursorPendingVisible)
|
||||||
|
, m_deviceListener(nullptr)
|
||||||
{
|
{
|
||||||
QByteArray hideCursorVal = qgetenv("QT_QPA_EGLFS_HIDECURSOR");
|
QByteArray hideCursorVal = qgetenv("QT_QPA_EGLFS_HIDECURSOR");
|
||||||
if (!hideCursorVal.isEmpty() && hideCursorVal.toInt()) {
|
if (!hideCursorVal.isEmpty() && hideCursorVal.toInt()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user