Commit 7191fc3f authored by Christian Persch's avatar Christian Persch

Use g_memory_output_stream_steal_data here

... instead of one extra g_memdup().

Bug #627181.
parent 71e73ffd
......@@ -2268,8 +2268,11 @@ g_dbus_message_to_blob (GDBusMessage *message,
g_data_output_stream_put_uint32 (dos, body_size, NULL, NULL);
if (!g_output_stream_close (G_OUTPUT_STREAM (dos), NULL, error))
goto out;
*out_size = size;
ret = g_memdup (g_memory_output_stream_get_data (mos), size);
ret = g_memory_output_stream_steal_data (mos);
out:
g_object_unref (dos);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment