[evolution] BUG 600217:Crashes in emfh_multipart_related_check



commit 79e19d570c95b9501268bf99a6caeee4ef68c12d
Author: Bharath Acharya <abharath novell com>
Date:   Fri Nov 13 06:50:41 2009 +0530

    BUG 600217:Crashes in emfh_multipart_related_check
    
    Check for the link

 mail/em-format-html.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 47213dc..6fbc607 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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]