From 7bd8141a2860d945a080c04bb4bd247b6d34cf3a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sun, 7 May 2000 21:57:20 +0000 Subject: 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 --- composer/e-msg-composer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'composer/e-msg-composer.c') 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); -- cgit