diff options
Diffstat (limited to 'e-util/e-category-editor.c')
-rw-r--r-- | e-util/e-category-editor.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/e-util/e-category-editor.c b/e-util/e-category-editor.c index 7d4223d3e8..708ba5c890 100644 --- a/e-util/e-category-editor.c +++ b/e-util/e-category-editor.c @@ -304,7 +304,7 @@ e_category_editor_edit_category (ECategoryEditor *editor, const gchar *category) { GtkFileChooser *file_chooser; - const gchar *icon_file; + gchar *icon_file; g_return_val_if_fail (E_IS_CATEGORY_EDITOR (editor), FALSE); g_return_val_if_fail (category != NULL, FALSE); @@ -314,11 +314,12 @@ e_category_editor_edit_category (ECategoryEditor *editor, gtk_entry_set_text (GTK_ENTRY (editor->priv->category_name), category); gtk_widget_set_sensitive (editor->priv->category_name, FALSE); - icon_file = e_categories_get_icon_file_for (category); + icon_file = e_categories_dup_icon_file_for (category); if (icon_file) { gtk_file_chooser_set_filename (file_chooser, icon_file); update_preview (file_chooser, NULL); } + g_free (icon_file); if (gtk_dialog_run (GTK_DIALOG (editor)) == GTK_RESPONSE_OK) { gchar *category_icon; |