tests: fix a GVariant referencing bug
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 31 Jan 2023 14:53:27 +0000 (15:53 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 31 Jan 2023 14:53:27 +0000 (15:53 +0100)
commit3176c65798d5c37c8073e4c2bb3079fd4edadceb
tree7ca8a62e65557c0eaa3ed71e0c23d48bb321c6fe
parent7894854a7c7f9d641477a605a2f9467637514528
tests: fix a GVariant referencing bug

g_variant_new() returns a floating reference that must be converted to
a full reference before returning or else we may get weird reference
counting errors.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tests/gpiod-test-helpers.c