Store surface object in tablet cursor using QPointer
The SurfaceInterface can get destroyed and TabletCursorV2 may return a dangling pointer. BUG: 446255
This commit is contained in:
parent
49aadee2a9
commit
ee1ea077ba
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ public:
|
|||
TabletCursorV2 *const q;
|
||||
|
||||
quint32 m_serial = 0;
|
||||
SurfaceInterface *m_surface = nullptr;
|
||||
QPointer<SurfaceInterface> m_surface;
|
||||
QPoint m_hotspot;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue