diff options
author | Paul Olav Tvete <paul.tvete@qt.io> | 2016-11-16 09:37:51 +0100 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2016-11-17 11:52:35 +0000 |
commit | 12f2e1e23fc1de16a42d3024561c0f839f9e96cd (patch) | |
tree | 6b0d2eca1c27fc29a5e2fd97579eba11a8cb11fc /src/compositor/extensions/qwaylandwlshell_p.h | |
parent | a8a7e28708a5c0741c013247cd3f3dc985d0fb57 (diff) |
Don't crash when surface is destroyed
Change-Id: I082c3bb0003265c625d165e1463951842a730c11
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'src/compositor/extensions/qwaylandwlshell_p.h')
-rw-r--r-- | src/compositor/extensions/qwaylandwlshell_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/extensions/qwaylandwlshell_p.h b/src/compositor/extensions/qwaylandwlshell_p.h index 5e8903090..a087f6f75 100644 --- a/src/compositor/extensions/qwaylandwlshell_p.h +++ b/src/compositor/extensions/qwaylandwlshell_p.h @@ -98,7 +98,7 @@ public: private: QWaylandWlShell *m_shell; - QWaylandSurface *m_surface; + QPointer<QWaylandSurface> m_surface; QSet<uint32_t> m_pings; |