]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Fix memory management of TestSuite.add*/get_root() with 2.70
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 7 Mar 2022 06:35:46 +0000 (07:35 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 7 Mar 2022 06:38:35 +0000 (07:38 +0100)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1295

vapi/glib-2.0.vapi

index e22acacdd6be26867a4782fb6dfb25364e65f203..47a585cf5939f8f04c5b9c676c8ccd4211fb342a 100644 (file)
@@ -5019,13 +5019,25 @@ namespace GLib {
                public TestSuite (string name);
                [Version (since = "2.16")]
                [CCode (cname = "g_test_get_root")]
+#if GLIB_2_70
+               public static unowned TestSuite get_root ();
+#else
                public static TestSuite get_root ();
+#endif
                [Version (since = "2.16")]
                [CCode (cname = "g_test_suite_add")]
+#if GLIB_2_70
+               public void add (owned TestCase test_case);
+#else
                public void add (TestCase test_case);
+#endif
                [Version (since = "2.16")]
                [CCode (cname = "g_test_suite_add_suite")]
+#if GLIB_2_70
+               public void add_suite (owned TestSuite test_suite);
+#else
                public void add_suite (TestSuite test_suite);
+#endif
                [Version (since = "2.70")]
                [DestroysInstance]
                [CCode (cname = "g_test_suite_free")]