From 2a44c2717ebc243678ef3a102072fb601ddab101 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 17 Jun 2014 12:52:05 -0400 Subject: [PATCH] Release array of keyboard keys when we shutdown input Signed-off-by: Chris Michael --- src/bin/e_comp_wl_input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c index b6d5db04d..4578f4040 100644 --- a/src/bin/e_comp_wl_input.c +++ b/src/bin/e_comp_wl_input.c @@ -353,10 +353,11 @@ e_comp_wl_input_shutdown(E_Comp_Wl_Data *cdata) /* TODO: destroy touch resources */ - /* TODO: destroy cdata->kbd.keys array */ + /* destroy cdata->kbd.keys array */ + wl_array_release(&cdata->kbd.keys); /* destroy the global seat resource */ - /* if (cdata->seat.global) wl_global_destroy(cdata->seat.global); */ + if (cdata->seat.global) wl_global_destroy(cdata->seat.global); cdata->seat.global = NULL; }