Fix xkb_context memory leak 90/76590/1
authorLi Zhang <li2012.zhang@samsung.com>
Fri, 24 Jun 2016 09:24:21 +0000 (17:24 +0800)
committerLi Zhang <li2012.zhang@samsung.com>
Fri, 24 Jun 2016 09:25:33 +0000 (17:25 +0800)
Change-Id: If54fcbcbd4eb4474d4bb9f6c7c397be670c38b7a

ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp

index d83272f..8766b68 100644 (file)
@@ -684,6 +684,11 @@ _wsc_im_deactivate(void *data, struct wl_input_method *input_method, struct wl_i
         wsc_ctx->keymap = NULL;
     }
 
+    if (wsc_ctx->xkb_context) {
+        xkb_context_unref (wsc_ctx->xkb_context);
+        wsc_ctx->xkb_context = NULL;
+    }
+
     if (wsc_ctx->im_ctx) {
         wl_input_method_context_destroy (wsc_ctx->im_ctx);
         wsc_ctx->im_ctx = NULL;