diff options
author | Dan Winship <danw@src.gnome.org> | 2000-05-08 05:57:20 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-05-08 05:57:20 +0800 |
commit | 7bd8141a2860d945a080c04bb4bd247b6d34cf3a (patch) | |
tree | 2916cf12349f26b9f2b46a02a4e407fdca88f5f9 /composer/e-msg-composer.c | |
parent | 48b23b2a9b6edab81636c7f812136f9965567a0c (diff) | |
download | gsoc2013-evolution-7bd8141a2860d945a080c04bb4bd247b6d34cf3a.tar.gz gsoc2013-evolution-7bd8141a2860d945a080c04bb4bd247b6d34cf3a.tar.zst gsoc2013-evolution-7bd8141a2860d945a080c04bb4bd247b6d34cf3a.zip |
unref content, etc. after attaching it to message.
* e-msg-composer.c (build_message): unref content, etc. after
attaching it to message.
* e-msg-composer-attachment-bar.c (attach_to_multipart): unref
part after attaching it.
svn path=/trunk/; revision=2884
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index edc77d28c4..37be9542f3 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -159,11 +159,13 @@ build_message (EMsgComposer *composer) camel_mime_part_set_content (part, text, strlen (text), "text/html"); camel_multipart_add_part (multipart, part); + gtk_object_unref (GTK_OBJECT (part)); e_msg_composer_attachment_bar_to_multipart (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar), multipart); camel_medium_set_content_object (CAMEL_MEDIUM (new), CAMEL_DATA_WRAPPER (multipart)); + gtk_object_unref (GTK_OBJECT (multipart)); } else { CamelDataWrapper *cdw; CamelStream *stream; @@ -172,10 +174,12 @@ build_message (EMsgComposer *composer) strlen (text)); cdw = camel_data_wrapper_new (); camel_data_wrapper_construct_from_stream (cdw, stream); + gtk_object_unref (GTK_OBJECT (stream)); camel_data_wrapper_set_mime_type (cdw, "text/html"); camel_medium_set_content_object (CAMEL_MEDIUM (new), CAMEL_DATA_WRAPPER (cdw)); + gtk_object_unref (GTK_OBJECT (cdw)); } g_free (text); |