summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Nemerson <evan@coeus-group.com>2012-08-16 12:09:52 -0700
committerEvan Nemerson <evan@coeus-group.com>2012-08-16 12:12:53 -0700
commit2e8088422b98456cbd60b06a4bf9fc199ad78d2d (patch)
tree00862dd0b11618322d7dfefba55288909ae68307
parentefae1d332ee6fdd12ad3a4b5e5e55acdc668aa86 (diff)
downloadvala-2e8088422b98456cbd60b06a4bf9fc199ad78d2d.tar.gz
pango: set free_function on Attribute to pango_attribute_destroy
Fixes bug 682006.
-rw-r--r--vapi/metadata/Pango-1.0-custom.vala5
-rw-r--r--vapi/pango.vapi2
2 files changed, 6 insertions, 1 deletions
diff --git a/vapi/metadata/Pango-1.0-custom.vala b/vapi/metadata/Pango-1.0-custom.vala
index b620352f8..d76376cb1 100644
--- a/vapi/metadata/Pango-1.0-custom.vala
+++ b/vapi/metadata/Pango-1.0-custom.vala
@@ -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 {
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index 9e1c65e97..d245976c8 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -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;