region: fix a couple of memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=652360
This commit is contained in:
parent
36cc21db32
commit
efbe184019
2 changed files with 3 additions and 0 deletions
|
@ -351,6 +351,7 @@ chooser_response (GtkDialog *chooser,
|
||||||
SEL_LAYOUT_TREE_COL_ID, id,
|
SEL_LAYOUT_TREE_COL_ID, id,
|
||||||
SEL_LAYOUT_TREE_COL_ENABLED, TRUE,
|
SEL_LAYOUT_TREE_COL_ENABLED, TRUE,
|
||||||
-1);
|
-1);
|
||||||
|
g_free (name);
|
||||||
add_default_switcher_if_necessary ();
|
add_default_switcher_if_necessary ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -466,6 +466,8 @@ xkb_options_update_option_counters (XklConfigRegistry * config_registry,
|
||||||
(current1st_level_id, config_item->name));
|
(current1st_level_id, config_item->name));
|
||||||
gboolean current_state =
|
gboolean current_state =
|
||||||
xkb_options_is_selected (full_option_name);
|
xkb_options_is_selected (full_option_name);
|
||||||
|
g_free (full_option_name);
|
||||||
|
|
||||||
xkb_options_expander_selcounter_add (current_state);
|
xkb_options_expander_selcounter_add (current_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue