summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Harju <mikko.harju@jolla.com>2013-08-15 12:11:20 +0300
committerAndrew Knight <andrew.knight@digia.com>2013-08-19 10:01:40 +0200
commitefd4c0203cd15f7ec46b7165a333fdfb2bea9950 (patch)
treef7bb663447bb2d52d497305b4a2420f552cc4f16
parenta6d4d9535eac513423a9b5bef32b619377cdb05d (diff)
Destroy extended surface object
QWaylandExtendedSurface did not destroy for the corresponding wayland object when deleted. Change-Id: I8bd916b3c4d06d2727cf1718fd0daa84590ab7bd Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
-rw-r--r--src/plugins/platforms/wayland_common/qwaylandextendedsurface.cpp5
-rw-r--r--src/plugins/platforms/wayland_common/qwaylandextendedsurface.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland_common/qwaylandextendedsurface.cpp b/src/plugins/platforms/wayland_common/qwaylandextendedsurface.cpp
index 91454348a..58eb0a833 100644
--- a/src/plugins/platforms/wayland_common/qwaylandextendedsurface.cpp
+++ b/src/plugins/platforms/wayland_common/qwaylandextendedsurface.cpp
@@ -61,6 +61,11 @@ QWaylandExtendedSurface::QWaylandExtendedSurface(QWaylandWindow *window, struct
{
}
+QWaylandExtendedSurface::~QWaylandExtendedSurface()
+{
+ qt_extended_surface_destroy(object());
+}
+
void QWaylandExtendedSurface::updateGenericProperty(const QString &name, const QVariant &value)
{
QByteArray byteValue;
diff --git a/src/plugins/platforms/wayland_common/qwaylandextendedsurface.h b/src/plugins/platforms/wayland_common/qwaylandextendedsurface.h
index c245dc8c1..4bef5e073 100644
--- a/src/plugins/platforms/wayland_common/qwaylandextendedsurface.h
+++ b/src/plugins/platforms/wayland_common/qwaylandextendedsurface.h
@@ -57,6 +57,7 @@ class QWaylandExtendedSurface : public QtWayland::qt_extended_surface
{
public:
QWaylandExtendedSurface(QWaylandWindow *window, struct ::qt_extended_surface *extended_surface);
+ ~QWaylandExtendedSurface();
void setContentOrientation(Qt::ScreenOrientation orientation);