]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
pango: set free_function on Attribute to pango_attribute_destroy
authorEvan Nemerson <evan@coeus-group.com>
Thu, 16 Aug 2012 19:09:52 +0000 (12:09 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Thu, 16 Aug 2012 19:12:53 +0000 (12:12 -0700)
Fixes bug 682006.

vapi/metadata/Pango-1.0-custom.vala
vapi/pango.vapi

index b620352f82c678c3c7a2275c28f64a9473c5f6b7..d76376cb101da31b5e03f22819509ff4ea6c2752 100644 (file)
@@ -46,6 +46,11 @@ namespace Pango {
                public AttrSize (int size);
        }
 
+       [CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
+       [Compact]
+       public class Attribute {
+       }
+
        [CCode (cheader_filename = "pango/pango.h", ref_function = "pango_coverage_ref", unref_function = "pango_coverage_unref")]
        [Compact]
        public class Coverage {
index 9e1c65e974f63804b541894861b3b2d9e8e6e2dc..d245976c81146ddaf7c94d90a83f152f3e148c9e 100644 (file)
@@ -107,7 +107,7 @@ namespace Pango {
        public class AttrString : Pango.Attribute {
                public weak string value;
        }
-       [CCode (cheader_filename = "pango/pango.h")]
+       [CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
        [Compact]
        public class Attribute {
                public uint end_index;