diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-04-05 08:12:45 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-04-05 08:14:36 (GMT) |
commit | 1513c28ac391741fc7d18dd79374a6c59f7e4dbb (patch) | |
tree | 2835406e52e6e66e69d5cb29622c5f3eca1ef5e8 /src/plugins/platforms/wayland/qwaylandwindow.cpp | |
parent | 5def7de22269906cc304c70534cef724b6127505 (diff) | |
download | Qt-1513c28ac391741fc7d18dd79374a6c59f7e4dbb.zip Qt-1513c28ac391741fc7d18dd79374a6c59f7e4dbb.tar.gz Qt-1513c28ac391741fc7d18dd79374a6c59f7e4dbb.tar.bz2 |
Make sure to delete wayland surface when QWaylandWindow is destroyed.
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandwindow.cpp')
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp index 9e851b3..e994616 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow.cpp +++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp @@ -61,6 +61,8 @@ QWaylandWindow::QWaylandWindow(QWidget *window) QWaylandWindow::~QWaylandWindow() { + if (mSurface) + wl_surface_destroy(mSurface); } WId QWaylandWindow::winId() const |