From 162035d40040367823e14103440eb5018d802edb Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Thu, 25 Oct 2001 00:03:17 +0000 Subject: rework this so that we don't end up freeing the cid then reading from it. 2001-10-24 Larry Ewing * e-msg-composer.c (e_msg_composer_add_inline_image_from_mime_part): rework this so that we don't end up freeing the cid then reading from it. svn path=/trunk/; revision=14077 --- composer/e-msg-composer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index aba81f2d6d..9b2d859c1a 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -3084,9 +3084,8 @@ e_msg_composer_add_inline_image_from_mime_part (EMsgComposer *composer, cid = (char *)camel_mime_part_get_content_id (part); if (!cid) { - cid = header_msgid_generate (); - camel_mime_part_set_content_id (part, cid); - g_free (cid); + camel_mime_part_set_content_id (part, NULL); + cid = (char *)camel_mime_part_get_content_id (part); } url = g_strdup_printf ("cid:%s", cid); -- cgit v1.2.3