aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-07-23 23:56:09 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-07-23 23:56:09 +0800
commit7f9b336892181f3e1d25883804ac7f059d21071a (patch)
tree4e3d29c03e7874ce6469f04cae76e44e8891e695 /mail
parentef4b84d6d43b7347e741e6307267df54c3e34ca5 (diff)
downloadgsoc2013-evolution-7f9b336892181f3e1d25883804ac7f059d21071a.tar
gsoc2013-evolution-7f9b336892181f3e1d25883804ac7f059d21071a.tar.gz
gsoc2013-evolution-7f9b336892181f3e1d25883804ac7f059d21071a.tar.bz2
gsoc2013-evolution-7f9b336892181f3e1d25883804ac7f059d21071a.tar.lz
gsoc2013-evolution-7f9b336892181f3e1d25883804ac7f059d21071a.tar.xz
gsoc2013-evolution-7f9b336892181f3e1d25883804ac7f059d21071a.tar.zst
gsoc2013-evolution-7f9b336892181f3e1d25883804ac7f059d21071a.zip
use uri_list before we set "uri-list" to NULL, which will automagically
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. svn path=/trunk/; revision=17549
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-display.c3
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);
}
}