summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMrunal Sovani <mrunal.s@samsung.com>2015-10-09 13:17:45 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-10-09 13:18:50 -0400
commitc94dc8c0f75be18d903a200b1fc5811dd207a0b1 (patch)
tree08f8c2b32ecf6e8ec177de7c6b9e6bac0b16eb4e
parent42beea0ca57594759bd526afd4db62906728b1e7 (diff)
Ecore_xcb_keymap: Fix memory leak in _ecore_xcb_keymap_finilize
Summary: xcb_get_modifier_mapping_reply_t *reply is obtained from xcb_get_modifier_mapping_reply and should be freed after use. Reviewers: raster, Hermet, tasn, zmike Subscribers: singh.amitesh, yashu21985, alok25, sachin.dev, cedric Differential Revision: https://phab.enlightenment.org/D3167 @fix
-rw-r--r--src/lib/ecore_x/xcb/ecore_xcb_keymap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore_x/xcb/ecore_xcb_keymap.c b/src/lib/ecore_x/xcb/ecore_xcb_keymap.c
index 35a559c1ed..8ec7af1176 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_keymap.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_keymap.c
@@ -126,6 +126,7 @@ _ecore_xcb_keymap_finalize(void)
126 ECORE_X_LOCK_NUM = _ecore_xcb_keymap_mask_get(reply, XK_Num_Lock); 126 ECORE_X_LOCK_NUM = _ecore_xcb_keymap_mask_get(reply, XK_Num_Lock);
127 ECORE_X_LOCK_CAPS = _ecore_xcb_keymap_mask_get(reply, XK_Caps_Lock); 127 ECORE_X_LOCK_CAPS = _ecore_xcb_keymap_mask_get(reply, XK_Caps_Lock);
128 ECORE_X_LOCK_SHIFT = _ecore_xcb_keymap_mask_get(reply, XK_Shift_Lock); 128 ECORE_X_LOCK_SHIFT = _ecore_xcb_keymap_mask_get(reply, XK_Shift_Lock);
129 free(reply);
129} 130}
130 131
131void 132void