aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-medium.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-27 04:40:58 +0800
committerDan Winship <danw@src.gnome.org>2000-04-27 04:40:58 +0800
commite751baaa7bfe2d7261e4501a8b79816dbaa3b488 (patch)
treeb65882b2f4bdd22cde368be0beedcc3e87a74f30 /camel/camel-medium.c
parentdcccb0484d52262980a48b05178f720f9acfa459 (diff)
downloadgsoc2013-evolution-e751baaa7bfe2d7261e4501a8b79816dbaa3b488.tar
gsoc2013-evolution-e751baaa7bfe2d7261e4501a8b79816dbaa3b488.tar.gz
gsoc2013-evolution-e751baaa7bfe2d7261e4501a8b79816dbaa3b488.tar.bz2
gsoc2013-evolution-e751baaa7bfe2d7261e4501a8b79816dbaa3b488.tar.lz
gsoc2013-evolution-e751baaa7bfe2d7261e4501a8b79816dbaa3b488.tar.xz
gsoc2013-evolution-e751baaa7bfe2d7261e4501a8b79816dbaa3b488.tar.zst
gsoc2013-evolution-e751baaa7bfe2d7261e4501a8b79816dbaa3b488.zip
sink the content object after referencing it.
* camel-medium.c (set_content_object): sink the content object after referencing it. * camel-mime-part.c: fix various little things in the handling of CamelMedium methods. Change camel_mime_part_set_text to the more generic camel_mime_part_set_content. svn path=/trunk/; revision=2643
Diffstat (limited to 'camel/camel-medium.c')
-rw-r--r--camel/camel-medium.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camel/camel-medium.c b/camel/camel-medium.c
index fca8117630..7a2ed1a6c8 100644
--- a/camel/camel-medium.c
+++ b/camel/camel-medium.c
@@ -255,6 +255,7 @@ set_content_object (CamelMedium *medium, CamelDataWrapper *content)
if (medium->content)
gtk_object_unref (GTK_OBJECT (medium->content));
gtk_object_ref (GTK_OBJECT (content));
+ gtk_object_sink (GTK_OBJECT (content));
medium->content = content;
}