diff options
author | Milan Crha <mcrha@redhat.com> | 2008-02-20 22:56:59 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-02-20 22:56:59 +0800 |
commit | 69cdae0bcb0a0824b594bade4620b4093a605b2f (patch) | |
tree | 02c426b35480d71a369cac1b1ab172993b7e09aa /calendar/gui | |
parent | 3c5d98af4ebd0377b0e7bd6367ee1f19df80cee5 (diff) | |
download | gsoc2013-evolution-69cdae0bcb0a0824b594bade4620b4093a605b2f.tar.gz gsoc2013-evolution-69cdae0bcb0a0824b594bade4620b4093a605b2f.tar.zst gsoc2013-evolution-69cdae0bcb0a0824b594bade4620b4093a605b2f.zip |
** Part of fix for bug #515744
2008-02-20 Milan Crha <mcrha@redhat.com>
** Part of fix for bug #515744
* composer/e-msg-composer.c: (drop_action):
* calendar/gui/dialogs/comp-editor.c: (drop_action):
Fixing previous fix - do not double free.
svn path=/trunk/; revision=35063
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 5a8be391ee..17b24091d8 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -279,21 +279,16 @@ drop_action(CompEditor *editor, GdkDragContext *context, guint32 action, GtkSele for (i = 0; urls[i] != NULL; i++) { str = g_strstrip (urls[i]); - if (urls[i][0] == '#') { - g_free(str); + if (urls[i][0] == '#') continue; - } if (!g_ascii_strncasecmp (str, "mailto:", 7)) { /* TODO does not handle mailto now */ - g_free (str); } else { url = camel_url_new (str, NULL); - if (url == NULL) { - g_free (str); + if (url == NULL) continue; - } if (!g_ascii_strcasecmp (url->protocol, "file")) e_attachment_bar_attach @@ -306,7 +301,6 @@ drop_action(CompEditor *editor, GdkDragContext *context, guint32 action, GtkSele str, "attachment"); camel_url_free (url); - g_free (str); } } |