aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-05-08 05:57:20 +0800
committerDan Winship <danw@src.gnome.org>2000-05-08 05:57:20 +0800
commit7bd8141a2860d945a080c04bb4bd247b6d34cf3a (patch)
tree2916cf12349f26b9f2b46a02a4e407fdca88f5f9
parent48b23b2a9b6edab81636c7f812136f9965567a0c (diff)
downloadgsoc2013-evolution-7bd8141a2860d945a080c04bb4bd247b6d34cf3a.tar
gsoc2013-evolution-7bd8141a2860d945a080c04bb4bd247b6d34cf3a.tar.gz
gsoc2013-evolution-7bd8141a2860d945a080c04bb4bd247b6d34cf3a.tar.bz2
gsoc2013-evolution-7bd8141a2860d945a080c04bb4bd247b6d34cf3a.tar.lz
gsoc2013-evolution-7bd8141a2860d945a080c04bb4bd247b6d34cf3a.tar.xz
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
-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);