diff options
author | Larry Ewing <lewing@ximian.com> | 2001-10-25 08:03:17 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2001-10-25 08:03:17 +0800 |
commit | 162035d40040367823e14103440eb5018d802edb (patch) | |
tree | 920450a17e4ab6dc9c0fab9de974c977f17eaa90 /composer/e-msg-composer.c | |
parent | 7a2d1a768b010b6c1c62c9e7ebdcf2aad563700a (diff) | |
download | gsoc2013-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.c | 5 |
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); |