commit | 73d9395e68b955b537452e8b9107d2e55cf455c3 | [log] [tgz] |
---|---|---|
author | Rui Matos <tiagomatos@gmail.com> | Thu Oct 24 19:28:41 2013 +0200 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Wed Jan 08 21:40:32 2014 -0800 |
tree | c25a3079a4d4e06930540acc60d0cbd6feae6ba1 | |
parent | b0420aeb3d05b36308cc9cfc8bf1bf0aa5a2b5ad [diff] |
input: Don't leak the initial keymap weston_xkb_info_create() takes ownership of the xkb_keymap instance so we should drop our reference or we would leak it later if the keymap was changed.
diff --git a/src/input.c b/src/input.c index 07e9d6c..902cfb8 100644 --- a/src/input.c +++ b/src/input.c
@@ -1954,6 +1954,7 @@ } ec->xkb_info = weston_xkb_info_create(keymap); + xkb_keymap_unref(keymap); if (ec->xkb_info == NULL) return -1;