[gnome-control-center] region: fix a couple of memory leaks
- From: Sergey V. Udaltsov <svu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: fix a couple of memory leaks
- Date: Sat, 11 Jun 2011 17:18:38 +0000 (UTC)
commit efbe184019cc16e057758b1985f5e23fd2a8fc72
Author: Rui Matos <tiagomatos gmail com>
Date: Sat Jun 11 17:42:35 2011 +0100
region: fix a couple of memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=652360
panels/region/gnome-region-panel-xkblt.c | 1 +
panels/region/gnome-region-panel-xkbot.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-xkblt.c b/panels/region/gnome-region-panel-xkblt.c
index 7913c21..2734b05 100644
--- a/panels/region/gnome-region-panel-xkblt.c
+++ b/panels/region/gnome-region-panel-xkblt.c
@@ -351,6 +351,7 @@ chooser_response (GtkDialog *chooser,
SEL_LAYOUT_TREE_COL_ID, id,
SEL_LAYOUT_TREE_COL_ENABLED, TRUE,
-1);
+ g_free (name);
add_default_switcher_if_necessary ();
}
diff --git a/panels/region/gnome-region-panel-xkbot.c b/panels/region/gnome-region-panel-xkbot.c
index 32f80f5..f5ec194 100644
--- a/panels/region/gnome-region-panel-xkbot.c
+++ b/panels/region/gnome-region-panel-xkbot.c
@@ -466,6 +466,8 @@ xkb_options_update_option_counters (XklConfigRegistry * config_registry,
(current1st_level_id, config_item->name));
gboolean current_state =
xkb_options_is_selected (full_option_name);
+ g_free (full_option_name);
+
xkb_options_expander_selcounter_add (current_state);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]