aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-stream-mem.c')
-rw-r--r--camel/camel-stream-mem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/camel-stream-mem.c b/camel/camel-stream-mem.c
index 77941894b7..0c07a2759f 100644
--- a/camel/camel-stream-mem.c
+++ b/camel/camel-stream-mem.c
@@ -127,14 +127,14 @@ void camel_stream_mem_set_byte_array (CamelStreamMem *s, GByteArray *buffer)
s->buffer = buffer;
}
-void camel_stream_mem_set_buffer (CamelStreamMem *s, const char *buffer,
- size_t len)
+void camel_stream_mem_set_buffer (CamelStreamMem *s, const char *buffer, size_t len)
{
GByteArray *ba;
ba = g_byte_array_new ();
- g_byte_array_append (ba, (const guint8 *)buffer, len);
+ g_byte_array_append(ba, (const guint8 *)buffer, len);
camel_stream_mem_set_byte_array(s, ba);
+ s->owner = TRUE;
}
static void