]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gobject-2.0: make TypeClass non-reference-counted
authorEvan Nemerson <evan@nemerson.com>
Thu, 12 Jun 2014 03:31:08 +0000 (20:31 -0700)
committerEvan Nemerson <evan@nemerson.com>
Thu, 12 Jun 2014 03:31:08 +0000 (20:31 -0700)
The ref function was always broken and would generate invalid C, so
this should be safe.

Fixes bug 679481.

vapi/gobject-2.0.vapi

index 426b2be637ba9c4c9feb1cedff3f2053d3d7a0b9..6cd0e40993391701ddfd8b534871acd42aecfc69 100644 (file)
@@ -89,7 +89,7 @@ namespace GLib {
        }
 
        [Compact]
-       [CCode (ref_function = "g_type_class_ref", unref_function = "g_type_class_unref")]
+       [CCode (free_function = "g_type_class_unref")]
        public class TypeClass {
                [CCode (cname = "G_TYPE_FROM_CLASS")]
                public Type get_type ();