summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Blin <olivier.blin@softathome.com>2015-05-04 20:54:58 +0200
committerOlivier Blin <qt@blino.org>2015-06-12 09:51:51 +0000
commitd00f517237775546c9a9e3ad49e972a37486514b (patch)
treea5b282c1b409b62c83f8bfadc39da82ab8271584
parente2bf8512c2363bb9f41d9357d4bf283ee5d58361 (diff)
downloadqtwayland-d00f517237775546c9a9e3ad49e972a37486514b.tar.gz
qtwayland-d00f517237775546c9a9e3ad49e972a37486514b.tar.bz2
qtwayland-d00f517237775546c9a9e3ad49e972a37486514b.zip
Fix xkb keymap string leak in the compositor
Change-Id: Ie02e6667e5867b729cf5a519705ded4f79b9f4b1 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-rw-r--r--src/compositor/wayland_wrapper/qwlkeyboard.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/qwlkeyboard.cpp b/src/compositor/wayland_wrapper/qwlkeyboard.cpp
index a7889fd4..d80c4b1f 100644
--- a/src/compositor/wayland_wrapper/qwlkeyboard.cpp
+++ b/src/compositor/wayland_wrapper/qwlkeyboard.cpp
@@ -368,6 +368,7 @@ void Keyboard::createXKBKeymap()
}
strcpy(m_keymap_area, keymap_str);
+ free(keymap_str);
m_state = xkb_state_new(keymap);