diff options
author | Benjamin Otte <otte@redhat.com> | 2016-12-26 17:07:24 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-12-26 17:22:01 +0100 |
commit | d7e867aa95583a107e5b8174caab6b9121acc16a (patch) | |
tree | c831b3c45ddafa30cefd4cf1ef906f3e15c9d0b7 /tests | |
parent | 3c8518dce38f92d86cbfe523df94fdf666e07017 (diff) | |
download | gtk+-d7e867aa95583a107e5b8174caab6b9121acc16a.tar.gz |
tests: Make rendernode --dump-variant actually work
Diffstat (limited to 'tests')
-rw-r--r-- | tests/rendernode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/rendernode.c b/tests/rendernode.c index d7924d233a..42781a11f5 100644 --- a/tests/rendernode.c +++ b/tests/rendernode.c @@ -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); } |