From 69cdae0bcb0a0824b594bade4620b4093a605b2f Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 20 Feb 2008 14:56:59 +0000 Subject: ** Part of fix for bug #515744 2008-02-20 Milan Crha ** 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 --- composer/ChangeLog | 7 +++++++ composer/e-msg-composer.c | 5 +---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'composer') diff --git a/composer/ChangeLog b/composer/ChangeLog index 8e6555f207..925e0244f1 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,10 @@ +2008-02-20 Milan Crha + + ** Part of fix for bug #515744 + + * e-msg-composer.c: (drop_action): + Fixing previous fix - do not double free. + 2008-02-18 Milan Crha ** Part of fix for bug #515744 diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 613b29a515..ae82e9b262 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2953,13 +2953,10 @@ drop_action(EMsgComposer *composer, GdkDragContext *context, guint32 action, Gtk for (i = 0; urls[i] != NULL; i++) { str = g_strstrip (urls[i]); - if (str[0] == '#' || str[0] == '\0') { - g_free (str); + if (str[0] == '#' || str[0] == '\0') continue; - } handle_uri (composer, str, html_dnd); - g_free (str); } g_strfreev (urls); -- cgit