diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2023-04-07 03:28:58 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2023-04-17 18:51:18 +0200 |
commit | f9b412e96d5618894158284289cf2a3fe6e7cbfd (patch) | |
tree | 00f2f2c9ec6a860f08c82e50a2ea17538679a1ef | |
parent | 18526da86cd4ba16e49c35069cc770c8d3840ea2 (diff) | |
download | gobject-introspection-f9b412e96d5618894158284289cf2a3fe6e7cbfd.tar.gz |
Apply the logic of previous commit to the array gvariant container
function, so that bindings can test better the memory handling of those
cases.
-rw-r--r-- | tests/gimarshallingtests.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c index 4c3889ea..fb300872 100644 --- a/tests/gimarshallingtests.c +++ b/tests/gimarshallingtests.c @@ -1856,7 +1856,8 @@ gi_marshalling_tests_array_gvariant_container_in (GVariant **variants) g_assert (variants[2] == NULL); container = g_new0 (GVariant *, 3); - container[0] = variants[0]; + /* This is a floating reference, so it's fine for transfer container */ + container[0] = g_variant_new_int32 (g_variant_get_int32 (variants[0])); container[1] = variants[1]; g_free (variants); |