aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-10-25 08:03:17 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-10-25 08:03:17 +0800
commit162035d40040367823e14103440eb5018d802edb (patch)
tree920450a17e4ab6dc9c0fab9de974c977f17eaa90 /composer/e-msg-composer.c
parent7a2d1a768b010b6c1c62c9e7ebdcf2aad563700a (diff)
downloadgsoc2013-evolution-162035d40040367823e14103440eb5018d802edb.tar.gz
gsoc2013-evolution-162035d40040367823e14103440eb5018d802edb.tar.zst
gsoc2013-evolution-162035d40040367823e14103440eb5018d802edb.zip
rework this so that we don't end up freeing the cid then reading from it.
2001-10-24 Larry Ewing <lewing@ximian.com> * 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
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c5
1 files changed, 2 insertions, 3 deletions
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);