Plug some leaks. Bug #376949.

2006-12-08  Kjartan Maraas  <kmaraas@gnome.org>

	* gnome-localization-properties.c: (languages_changed_cb),
	(languages_sorted_cb), (fill_region_option_menu), (setup_dialog):
	Plug some leaks. Bug #376949.
This commit is contained in:
Kjartan Maraas 2006-12-08 16:32:37 +00:00 committed by Kjartan Maraas
parent 2252b81ff4
commit a4cbbfc655
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,5 @@
2006-12-08 Kjartan Maraas <kmaraas@gnome.org>
* gnome-localization-properties.c: (languages_changed_cb),
(languages_sorted_cb), (fill_region_option_menu), (setup_dialog):
Plug some leaks. Bug #376949.

View file

@ -399,6 +399,7 @@ languages_changed_cb (GConfClient *client, guint cnxn_id,
update_warning_box (dialog);
update_info_box (dialog, langs->data, region);
g_free (region);
fill_region_option_menu (dialog);
}
@ -445,6 +446,7 @@ languages_sorted_cb (GtkWidget *widget,
update_warning_box (dialog);
update_info_box (dialog, new_langs->data, region);
g_free (region);
}
}
}
@ -962,6 +964,7 @@ fill_region_option_menu (GladeXML *dialog)
gtk_widget_show_all (menu);
update_region_examples (dialog, selected_region);
g_free (selected_region);
}
static void
@ -1067,7 +1070,8 @@ setup_dialog (GladeXML *dialog,
GCONF_LOCALIZATION_ROOT_KEY "/region", NULL);
update_info_box (dialog, langs->data, region);
g_free (region);
/* Dialog action buttons */
g_signal_connect (G_OBJECT (WID ("localization_dialog")), "response",
G_CALLBACK (dialog_response), changeset);