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 --- addressbook/gui/contact-editor/e-contact-editor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'addressbook/gui/contact-editor') diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 6f4597ab1f..d1494ff366 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -3223,7 +3223,7 @@ categories_response (GtkDialog *dialog, gint response, EContactEditor *editor) { - const gchar *categories; + gchar *categories; GtkWidget *entry; entry = e_builder_get_widget (editor->builder, "entry-categories"); @@ -3238,7 +3238,8 @@ categories_response (GtkDialog *dialog, e_contact_set ( editor->contact, E_CONTACT_CATEGORIES, - (gchar *) categories); + categories); + g_free (categories); } gtk_widget_destroy (GTK_WIDGET (dialog)); -- cgit v1.2.3