diff options
author | Peter Williams <peterw@src.gnome.org> | 2000-11-07 09:19:27 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2000-11-07 09:19:27 +0800 |
commit | 66b85f364e12a4c94faccb08906b48a9ac1452f5 (patch) | |
tree | bb28b0edcc699d3e7ae4397cd42775212eccbd23 /composer/e-msg-composer-attachment-bar.c | |
parent | 1359e56e8435dfbce8dc5c5bfc7a3d3b65e4e3e1 (diff) | |
download | gsoc2013-evolution-66b85f364e12a4c94faccb08906b48a9ac1452f5.tar.gz gsoc2013-evolution-66b85f364e12a4c94faccb08906b48a9ac1452f5.tar.zst gsoc2013-evolution-66b85f364e12a4c94faccb08906b48a9ac1452f5.zip |
Two segfault fixes
svn path=/trunk/; revision=6472
Diffstat (limited to 'composer/e-msg-composer-attachment-bar.c')
-rw-r--r-- | composer/e-msg-composer-attachment-bar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c index 07debafdd0..1b6d2232a4 100644 --- a/composer/e-msg-composer-attachment-bar.c +++ b/composer/e-msg-composer-attachment-bar.c @@ -706,7 +706,6 @@ attach_to_multipart (CamelMultipart *multipart, array = g_byte_array_new (); stream = camel_stream_mem_new_with_byte_array (array); camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (attachment->body), stream); - camel_object_unref (CAMEL_OBJECT (stream)); g_byte_array_append (array, "", 1); text = array->data; @@ -715,7 +714,7 @@ attach_to_multipart (CamelMultipart *multipart, else camel_mime_part_set_encoding (attachment->body, CAMEL_MIME_PART_ENCODING_7BIT); - g_byte_array_free (array, TRUE); + camel_object_unref (CAMEL_OBJECT (stream)); } else if (g_strcasecmp (content_type->type, "message") != 0) { camel_mime_part_set_encoding (attachment->body, CAMEL_MIME_PART_ENCODING_BASE64); |