diff options
Diffstat (limited to 'camel/camel-data-wrapper.c')
-rw-r--r-- | camel/camel-data-wrapper.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c index fe9f8bf78b..86be8117bf 100644 --- a/camel/camel-data-wrapper.c +++ b/camel/camel-data-wrapper.c @@ -156,7 +156,12 @@ camel_data_wrapper_write_to_stream (CamelDataWrapper *data_wrapper, static int construct_from_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) { - return -1; + if (data_wrapper->stream) + gtk_object_unref((GtkObject *)data_wrapper->stream); + + data_wrapper->stream = stream; + gtk_object_ref (GTK_OBJECT (stream)); + return 0; } /** |