From: Evan Nemerson Date: Thu, 12 Jun 2014 03:31:08 +0000 (-0700) Subject: gobject-2.0: make TypeClass non-reference-counted X-Git-Tag: 0.25.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8fb7fd3c297f91b5613b18b1d3fa1d76260ea82;p=thirdparty%2Fvala.git gobject-2.0: make TypeClass non-reference-counted The ref function was always broken and would generate invalid C, so this should be safe. Fixes bug 679481. --- diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi index 426b2be63..6cd0e4099 100644 --- a/vapi/gobject-2.0.vapi +++ b/vapi/gobject-2.0.vapi @@ -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 ();