region: fix a couple of memory leaks

https://bugzilla.gnome.org/show_bug.cgi?id=652360
This commit is contained in:
Rui Matos 2011-06-11 17:42:35 +01:00 committed by Sergey V. Udaltsov
parent 36cc21db32
commit efbe184019
2 changed files with 3 additions and 0 deletions

View file

@ -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 ();
}

View file

@ -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);
}