Release array of keyboard keys when we shutdown input
authorChris Michael <devilhorns@comcast.net>
Tue, 17 Jun 2014 16:52:05 +0000 (12:52 -0400)
committerChris Michael <cp.michael@samsung.com>
Tue, 26 Aug 2014 14:10:36 +0000 (10:10 -0400)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_comp_wl_input.c

index b6d5db0..4578f40 100644 (file)
@@ -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;
 }