aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-19 11:20:13 +0800
committerDan Winship <danw@src.gnome.org>2000-04-19 11:20:13 +0800
commit80b463a043ce176168c17d3a82db01941feb4b63 (patch)
tree7f68d783d680b6e0cd541e427678a8a7b511b1b0 /camel/camel-mime-part.c
parente3769571ce44768d25a4c13c3c1da9b0166de5b5 (diff)
downloadgsoc2013-evolution-80b463a043ce176168c17d3a82db01941feb4b63.tar
gsoc2013-evolution-80b463a043ce176168c17d3a82db01941feb4b63.tar.gz
gsoc2013-evolution-80b463a043ce176168c17d3a82db01941feb4b63.tar.bz2
gsoc2013-evolution-80b463a043ce176168c17d3a82db01941feb4b63.tar.lz
gsoc2013-evolution-80b463a043ce176168c17d3a82db01941feb4b63.tar.xz
gsoc2013-evolution-80b463a043ce176168c17d3a82db01941feb4b63.tar.zst
gsoc2013-evolution-80b463a043ce176168c17d3a82db01941feb4b63.zip
do better reference counting of streams so they actually go away when they
* camel-mime-part.c (my_set_input_stream): * camel-data-wrapper.c (set_input_stream, set_output_stream): do better reference counting of streams so they actually go away when they should. svn path=/trunk/; revision=2490
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index 9733eb31b1..ca4f71dc31 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -816,7 +816,8 @@ my_set_input_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
mime_part->content_input_stream = camel_seekable_substream_new_with_seekable_stream_and_bounds (seekable_stream,
content_stream_inf_bound,
-1);
-
+ gtk_object_ref (GTK_OBJECT (mime_part->content_input_stream));
+ gtk_object_sink (GTK_OBJECT (mime_part->content_input_stream));
}