mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
tests: Fix a leak in gdbus-test-codegen test
The `ay` property has type `string` (see the generated code) since it’s not been annotated to force accepting a `GVariant`. This means the GObject property machinery expects a string, and calls `g_strdup()` on the passed-in pointer, rather than sinking the `GVariant`. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #2312
This commit is contained in:
parent
b3a568d19e
commit
0239ae7122
@ -869,7 +869,7 @@ check_bar_proxy (FooiGenBar *proxy,
|
||||
"s", "a string",
|
||||
"o", "/a/path",
|
||||
"g", "asig",
|
||||
"ay", g_variant_new_parsed ("[byte 0x65, 0x67]"),
|
||||
"ay", "eg",
|
||||
"as", array_of_strings,
|
||||
"ao", array_of_objpaths,
|
||||
"ag", g_variant_new_parsed ("[@g 'ass', 'git']"),
|
||||
|
Loading…
Reference in New Issue
Block a user