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
This commit is contained in:
Mrunal Sovani 2015-10-09 13:17:45 -04:00 committed by Mike Blumenkrantz
parent 932b6e7463
commit 2fc00da9fa
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ _ecore_xcb_keymap_finalize(void)
ECORE_X_LOCK_NUM = _ecore_xcb_keymap_mask_get(reply, XK_Num_Lock);
ECORE_X_LOCK_CAPS = _ecore_xcb_keymap_mask_get(reply, XK_Caps_Lock);
ECORE_X_LOCK_SHIFT = _ecore_xcb_keymap_mask_get(reply, XK_Shift_Lock);
free(reply);
}
void