diff options
author | Dan Winship <danw@src.gnome.org> | 2000-04-25 03:29:20 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-04-25 03:29:20 +0800 |
commit | 98e2091d6287bd28601d49877f1169de1c0dad6c (patch) | |
tree | 7f5bf3a6c21069fcf1542bd5d3c5637596e1219b /camel/providers/mbox | |
parent | 262f167d2e8da08fa15ab9099f1aec6209915e56 (diff) | |
download | gsoc2013-evolution-98e2091d6287bd28601d49877f1169de1c0dad6c.tar.gz gsoc2013-evolution-98e2091d6287bd28601d49877f1169de1c0dad6c.tar.zst gsoc2013-evolution-98e2091d6287bd28601d49877f1169de1c0dad6c.zip |
ref (and sink) the message stream if we're going to unref it later.
* providers/mbox/camel-mbox-folder.c (_get_message_by_uid): ref
(and sink) the message stream if we're going to unref it later.
Otherwise it could get destroyed while there are still substreams
attached to it. This needs a cleaner solution.
svn path=/trunk/; revision=2586
Diffstat (limited to 'camel/providers/mbox')
-rw-r--r-- | camel/providers/mbox/camel-mbox-folder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c index a22c273c2d..be02a472c6 100644 --- a/camel/providers/mbox/camel-mbox-folder.c +++ b/camel/providers/mbox/camel-mbox-folder.c @@ -855,6 +855,8 @@ _get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex) CAMEL_STREAM_FS_READ, ((CamelMboxMessageContentInfo *)info->info.content)->pos, ((CamelMboxMessageContentInfo *)info->info.content)->endpos); + gtk_object_ref((GtkObject *)message_stream); + gtk_object_sink((GtkObject *)message_stream); message = camel_mime_message_new(); camel_data_wrapper_construct_from_stream((CamelDataWrapper *)message, message_stream); gtk_object_unref((GtkObject *)message_stream); |