[vala/staging: 2/2] glib-2.0: Fix memory management of TestSuite.add*/get_root() with 2.70




commit 5f0a146f65673379fc84c3cd8e6bca826ffad96f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Mar 7 07:35:46 2022 +0100

    glib-2.0: Fix memory management of TestSuite.add*/get_root() with 2.70
    
    Fixes https://gitlab.gnome.org/GNOME/vala/issues/1295

 vapi/glib-2.0.vapi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index e22acacdd..47a585cf5 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -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")]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]