From afea60336c6d2bf2e50cfba7c839d5cfd4168581 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 24 Feb 2003 22:15:26 +0000 Subject: Make sure the url is != NULL? I can't think of anything else in this code 2003-02-24 Jeffrey Stedfast * e-msg-composer.c (drag_data_received): Make sure the url is != NULL? I can't think of anything else in this code that could possibly cause bug #38382. svn path=/trunk/; revision=20046 --- composer/ChangeLog | 4 ++++ composer/e-msg-composer.c | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'composer') diff --git a/composer/ChangeLog b/composer/ChangeLog index b75a6c472d..836a4ec441 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,5 +1,9 @@ 2003-02-24 Jeffrey Stedfast + * e-msg-composer.c (drag_data_received): Make sure the url is != + NULL? I can't think of anything else in this code that could + possibly cause bug #38382. + * e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Fixed a memory leak. diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 8cbefb3edd..8cea22d775 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2493,6 +2493,10 @@ drag_data_received (EMsgComposer *composer, GdkDragContext *context, } else { url = camel_url_new (str, NULL); g_free (str); + + if (url == NULL) + continue; + filename = url->path; url->path = NULL; camel_url_free (url); -- cgit v1.2.3