forked from AuroraMiddleware/gtk
tests: Make rendernode --dump-variant actually work
This commit is contained in:
parent
3c8518dce3
commit
d7e867aa95
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user