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

g_variant_byteswap: don't leak

Signed-off-by: Simon McVittie's avatarSimon McVittie <>
Bug: Matthias Clasen's avatarMatthias Clasen <>
parent a48edddc
......@@ -5109,7 +5109,7 @@ g_variant_byteswap (GVariant *value)
g_variant_serialised_byteswap (serialised);
bytes = g_bytes_new (, serialised.size);
bytes = g_bytes_new_take (, 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