[vala] gobject-2.0: make TypeClass non-reference-counted



commit d8fb7fd3c297f91b5613b18b1d3fa1d76260ea82
Author: Evan Nemerson <evan nemerson com>
Date:   Wed Jun 11 20:31:08 2014 -0700

    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.

 vapi/gobject-2.0.vapi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi
index 426b2be..6cd0e40 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 ();


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