Commit 93f8f815 authored by Simon McVittie's avatar Simon McVittie

g_variant_byteswap: don't leak serialised.data

Signed-off-by: Simon McVittie's avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113Reviewed-by: Matthias Clasen's avatarMatthias Clasen <mclasen@redhat.com>
parent a48edddc
......@@ -5109,7 +5109,7 @@ g_variant_byteswap (GVariant *value)
g_variant_serialised_byteswap (serialised);
bytes = g_bytes_new (serialised.data, serialised.size);
bytes = g_bytes_new_take (serialised.data, serialised.size);
new = g_variant_new_from_bytes (g_variant_get_type (value), bytes, TRUE);
g_bytes_unref (bytes);
}
......
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