gvariant: Fix refcounting behaviour of g_variant_byteswap()
@pwithnall
Submitted by Philip Withnall Assigned to Allison (desrt)
Link to original bug (#792612)
Description
Patch attached. This is worthy of some thought to see if we can do any better. I do not think we can do any better without causing API breaks which could crash existing code, though.