From ce2456dde6a985319c6fb27d26e4f5cfbd9f0a88 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 4 May 2001 15:41:13 +0000 Subject: Plug a leak in the folder creation dialog (a string was being unnecessarily duplicated twice). svn path=/trunk/; revision=9669 --- shell/ChangeLog | 5 +++++ shell/e-shell-folder-creation-dialog.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index 5ad67ab66b..a692d61829 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2001-05-04 Ettore Perazzoli + + * e-shell-folder-creation-dialog.c (dialog_clicked_cb): Don't + strdup `path' before copying it into the `dialog_data'. + 2001-05-04 Ettore Perazzoli * importer/intelligent.c (get_intelligent_importers): Free the diff --git a/shell/e-shell-folder-creation-dialog.c b/shell/e-shell-folder-creation-dialog.c index 8a50ebaab9..13c3a74abe 100644 --- a/shell/e-shell-folder-creation-dialog.c +++ b/shell/e-shell-folder-creation-dialog.c @@ -184,7 +184,7 @@ dialog_clicked_cb (GnomeDialog *dialog, } g_free (dialog_data->folder_path); - dialog_data->folder_path = g_strdup (path); + dialog_data->folder_path = path; e_storage_set_async_create_folder (storage_set, path, -- cgit v1.2.3