summaryrefslogtreecommitdiff
path: root/tests/genie
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2022-02-24 13:45:18 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2022-02-24 13:45:18 +0100
commit87d66947248c5010062d6ee2a2b87f1ba92a93bb (patch)
tree4fb840902dc9db97f2981f08b280980830e20d26 /tests/genie
parent612bded4642734554b7658c64d90ec1c3336006d (diff)
downloadvala-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/genie')
-rw-r--r--tests/genie/struct-after-class.c-expected1
-rw-r--r--tests/genie/struct.c-expected1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/genie/struct-after-class.c-expected b/tests/genie/struct-after-class.c-expected
index 34119aa30..7047db9ad 100644
--- a/tests/genie/struct-after-class.c-expected
+++ b/tests/genie/struct-after-class.c-expected
@@ -84,6 +84,7 @@ VALA_EXTERN void test_struct_free (TestStruct* self);
VALA_EXTERN void test_struct_copy (const TestStruct* self,
TestStruct* dest);
VALA_EXTERN void test_struct_destroy (TestStruct* self);
+G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC (TestStruct, test_struct_destroy)
VALA_EXTERN void test_struct_init (TestStruct *self);
static void testclass_finalize (TestClass * obj);
static GType testclass_get_type_once (void);
diff --git a/tests/genie/struct.c-expected b/tests/genie/struct.c-expected
index d62aff439..9d4e4cb50 100644
--- a/tests/genie/struct.c-expected
+++ b/tests/genie/struct.c-expected
@@ -36,6 +36,7 @@ VALA_EXTERN void test_free (Test* self);
VALA_EXTERN void test_copy (const Test* self,
Test* dest);
VALA_EXTERN void test_destroy (Test* self);
+G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC (Test, test_destroy)
VALA_EXTERN void test_init (Test *self);
static void