[libgnomekbd] Revert "config: plug minor leak"
- From: Sergey V. Udaltsov <svu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnomekbd] Revert "config: plug minor leak"
- Date: Sun, 25 Mar 2012 22:07:05 +0000 (UTC)
commit 2981a6f59dd0b3cdf5ceb1d977d04c13cf6b5ef4
Author: Sergey V. Udaltsov <svu gnome org>
Date: Sun Mar 25 19:23:34 2012 +0100
Revert "config: plug minor leak"
This reverts commit a6ca20e027edf43df578c7cf1aa26eecb6512540.
libgnomekbd/gkbd-keyboard-config.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/libgnomekbd/gkbd-keyboard-config.c b/libgnomekbd/gkbd-keyboard-config.c
index 5df372d..8ae216b 100644
--- a/libgnomekbd/gkbd-keyboard-config.c
+++ b/libgnomekbd/gkbd-keyboard-config.c
@@ -309,11 +309,9 @@ gkbd_keyboard_config_copy_to_xkl_config (GkbdKeyboardConfig * kbd_config,
char *group, *option;
if (gkbd_keyboard_config_split_items
(*the_option, &group, &option)
- && option != NULL) {
+ && option != NULL)
*(p++) = g_strdup (option);
- g_free (group);
- g_free (option);
- } else {
+ else {
*(p++) = g_strdup ("");
xkl_debug (150, "Could not split [%s]\n",
*the_option);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]