tests: unref GVariant objects
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 5 Dec 2022 13:22:38 +0000 (14:22 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 5 Dec 2022 13:47:29 +0000 (14:47 +0100)
commit55cc5af0f445d1912a55600aeca882390a04a661
tree96c85e85fca1dfd1c46c7650043d59daf7052f6c
parent03a6c2f881d517cd9da6eb672eab14a5df307357
tests: unref GVariant objects

We need to drop the reference count of the GVariants we create when
packing hogs and line names. This fixes all memory leaks in tests that
are caused by this bug.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tests/tests-chip.c
tests/tests-line-info.c