[gtk-vnc] properly free xkbDesk
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] properly free xkbDesk
- Date: Wed, 21 Dec 2011 17:34:54 +0000 (UTC)
commit 229c1061b3fbe34911d8f7b42a3a87c9b8f15931
Author: Christophe Fergeau <cfergeau redhat com>
Date: Mon May 30 09:43:24 2011 +0200
properly free xkbDesk
valgrind detects a memory leak if it's not freed using
xkbFreeKeyboard.
src/vncdisplaykeymap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vncdisplaykeymap.c b/src/vncdisplaykeymap.c
index 5889150..2973435 100644
--- a/src/vncdisplaykeymap.c
+++ b/src/vncdisplaykeymap.c
@@ -156,7 +156,7 @@ const guint16 *vnc_display_keymap_gdk2rfb_table(size_t *maplen)
if (!keycodes)
g_warning("could not lookup keycode name");
}
- XkbFreeClientMap(desc, XkbGBN_AllComponentsMask, True);
+ XkbFreeKeyboard(desc, XkbGBN_AllComponentsMask, True);
}
if (check_for_xwin(dpy)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]