From 10ee75dfdfd41fc35e6307619e891915b6f3cafe Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 14 Dec 2011 13:08:16 +0100 Subject: Fix leaks around categories editing Requires commit 768ca76 in evolution-data-server --- e-util/e-categories-config.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'e-util') diff --git a/e-util/e-categories-config.c b/e-util/e-categories-config.c index 5ca20f8e74..9beeb92df2 100644 --- a/e-util/e-categories-config.c +++ b/e-util/e-categories-config.c @@ -130,8 +130,11 @@ e_categories_config_open_dialog_for_entry (GtkEntry *entry) result = gtk_dialog_run (dialog); if (result == GTK_RESPONSE_OK) { - text = e_categories_dialog_get_categories (E_CATEGORIES_DIALOG (dialog)); - gtk_entry_set_text (GTK_ENTRY (entry), text); + gchar *categories; + + categories = e_categories_dialog_get_categories (E_CATEGORIES_DIALOG (dialog)); + gtk_entry_set_text (GTK_ENTRY (entry), categories); + g_free (categories); } gtk_widget_destroy (GTK_WIDGET (dialog)); -- cgit v1.2.3