tests: Make rendernode --dump-variant actually work

This commit is contained in:
Benjamin Otte 2016-12-26 17:07:24 +01:00
parent 3c8518dce3
commit d7e867aa95

View File

@ -53,8 +53,11 @@ main(int argc, char **argv)
if (dump_variant)
{
GVariant *variant = g_variant_new_from_bytes (G_VARIANT_TYPE ("(suuv)"), bytes, FALSE);
char *s;
g_variant_print (variant, FALSE);
s = g_variant_print (variant, FALSE);
g_print ("%s\n", s);
g_free (s);
g_variant_unref (variant);
}