diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-display.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index bd49c26a81..3c83d7211f 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2002-07-24 Not Zed <NotZed@Ximian.com> + + * mail-display.c (drag_data_delete_cb): use uri_list before we set + "uri-list" to NULL, which will automagically free it for us, so + dont free it either. Found with vagrind. + 2002-07-23 Not Zed <NotZed@Ximian.com> * message-browser.c (message_browser_destroy): Disconnect from diff --git a/mail/mail-display.c b/mail/mail-display.c index c7a9ce55d7..ea10ef7531 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -874,9 +874,8 @@ drag_data_delete_cb (GtkWidget *widget, uri_list = gtk_object_get_data (GTK_OBJECT (widget), "uri-list"); if (uri_list) { - gtk_object_set_data (GTK_OBJECT (widget), "uri-list", NULL); unlink (uri_list + 7); - g_free (uri_list); + gtk_object_set_data (GTK_OBJECT (widget), "uri-list", NULL); } } |