From 1c72063150ce9a805f13970b7a87694809d7165a Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Thu, 9 Jan 2014 22:09:59 +0100 Subject: [PATCH] Destroy the input wayland objects They are not automatically destroyed by the compositor when the seat loses them. Change-Id: I72d45d664948afb4b39f137c91870f21d26dcb4a Reviewed-by: Laszlo Agocs --- src/plugins/platforms/wayland/qwaylandinputdevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/platforms/wayland/qwaylandinputdevice.cpp b/src/plugins/platforms/wayland/qwaylandinputdevice.cpp index c03647e5463..a979baff3f5 100644 --- a/src/plugins/platforms/wayland/qwaylandinputdevice.cpp +++ b/src/plugins/platforms/wayland/qwaylandinputdevice.cpp @@ -112,6 +112,7 @@ public: if (mXkbContext) xkb_context_unref(mXkbContext); #endif + wl_keyboard_destroy(object()); } void keyboard_keymap(uint32_t format, @@ -161,6 +162,7 @@ public: } ~Pointer() { + wl_pointer_destroy(object()); } void pointer_enter(uint32_t serial, struct wl_surface *surface, @@ -193,6 +195,7 @@ public: } ~Touch() { + wl_touch_destroy(object()); } void touch_down(uint32_t serial,