[PATCH weston] toytoolkit: Remove redundant XKB free

Daniel Stone daniel at fooishbar.org
Mon Jul 9 04:27:28 PDT 2012


We already unref these in fini_xkb().

Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
 clients/window.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/clients/window.c b/clients/window.c
index 8f3c942..39a9dd6 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -3335,11 +3335,6 @@ input_destroy(struct input *input)
 	input_remove_keyboard_focus(input);
 	input_remove_pointer_focus(input);
 
-	if (input->xkb.state)
-		xkb_state_unref(input->xkb.state);
-	if (input->xkb.keymap)
-		xkb_map_unref(input->xkb.keymap);
-
 	if (input->drag_offer)
 		data_offer_destroy(input->drag_offer);
 
-- 
1.7.10.4



More information about the wayland-devel mailing list