Fix leaks around categories editing
Requires commit 768ca76 in evolution-data-server
This commit is contained in:
@ -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));
|
||||
|
||||
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user