[vala] gobject-2.0: make TypeClass non-reference-counted
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gobject-2.0: make TypeClass non-reference-counted
- Date: Thu, 12 Jun 2014 03:34:55 +0000 (UTC)
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]