Make sure the url is != NULL? I can't think of anything else in this code
2003-02-24 Jeffrey Stedfast <fejj@ximian.com> * 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
This commit is contained in:
committed by
Jeffrey Stedfast
parent
910eaf99d2
commit
afea60336c
@ -1,5 +1,9 @@
|
||||
2003-02-24 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* 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.
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user