From 79e19d570c95b9501268bf99a6caeee4ef68c12d Mon Sep 17 00:00:00 2001 From: Bharath Acharya Date: Fri, 13 Nov 2009 06:50:41 +0530 Subject: BUG 600217:Crashes in emfh_multipart_related_check Check for the link --- mail/em-format-html.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail') diff --git a/mail/em-format-html.c b/mail/em-format-html.c index 47213dc5d5..6fbc6079aa 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -1988,6 +1988,12 @@ emfh_multipart_related_check(struct _EMFormatHTMLJob *job, gint cancelled) link = g_queue_peek_head_link (job->puri_level->data); + if (!link) { + g_string_printf (format->part_id, "%s", oldpartid); + g_free (oldpartid); + return; + } + while (link->next != NULL) { EMFormatPURI *puri = link->data; -- cgit v1.2.3