aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog8
-rw-r--r--composer/e-msg-composer-attachment-bar.c1
-rw-r--r--composer/e-msg-composer.c4
3 files changed, 13 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 5dba1a7048..c04f297bed 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,11 @@
+2000-05-07 Dan Winship <danw@helixcode.com>
+
+ * 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.
+
2000-05-06 Christopher James Lahey <clahey@helixcode.com>
* e-msg-composer-hdrs.c: Turned off focus in the To, Cc, and Bcc
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c
index 212577a7ad..57eb2d42b6 100644
--- a/composer/e-msg-composer-attachment-bar.c
+++ b/composer/e-msg-composer-attachment-bar.c
@@ -632,6 +632,7 @@ attach_to_multipart (CamelMultipart *multipart,
camel_mime_part_set_description (part, attachment->description);
camel_multipart_add_part (multipart, part);
+ gtk_object_unref (GTK_OBJECT (part));
}
void
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);