diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-02-24 13:45:18 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-02-24 13:45:18 +0100 |
commit | 87d66947248c5010062d6ee2a2b87f1ba92a93bb (patch) | |
tree | 4fb840902dc9db97f2981f08b280980830e20d26 /tests/basic-types/garray.c-expected | |
parent | 612bded4642734554b7658c64d90ec1c3336006d (diff) | |
download | vala-87d66947248c5010062d6ee2a2b87f1ba92a93bb.tar.gz |
codegen: Emit G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC() for structs
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1293
Diffstat (limited to 'tests/basic-types/garray.c-expected')
-rw-r--r-- | tests/basic-types/garray.c-expected | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/basic-types/garray.c-expected b/tests/basic-types/garray.c-expected index 07713ca1a..636562418 100644 --- a/tests/basic-types/garray.c-expected +++ b/tests/basic-types/garray.c-expected @@ -71,6 +71,7 @@ VALA_EXTERN void foo_struct_free (FooStruct* self); VALA_EXTERN void foo_struct_copy (const FooStruct* self, FooStruct* dest); VALA_EXTERN void foo_struct_destroy (FooStruct* self); +G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC (FooStruct, foo_struct_destroy) VALA_EXTERN void test_garray (void); static void _g_object_unref0_ (gpointer var); static void _vala_Foo_free_function_content_of (gpointer data); |