[vala] Fix crash with owned property getters and interfaces



commit 9adb8ff880b96a6635d84a9f3e377d9925bb66ad
Author: Jürg Billeter <j bitron ch>
Date:   Sun Mar 21 19:40:03 2010 +0100

    Fix crash with owned property getters and interfaces

 vala/valainterface.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/vala/valainterface.vala b/vala/valainterface.vala
index 0ff381d..54890cf 100644
--- a/vala/valainterface.vala
+++ b/vala/valainterface.vala
@@ -1,6 +1,6 @@
 /* valainterface.vala
  *
- * Copyright (C) 2006-2009  Jürg Billeter
+ * Copyright (C) 2006-2010  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -519,6 +519,10 @@ public class Vala.Interface : ObjectTypeSymbol {
 		return "g_value_set_object";
 	}
 
+	public override string? get_take_value_function () {
+		return "g_value_take_object";
+	}
+
 	public override string? get_type_id () {
 		if (type_id == null) {
 			type_id = get_upper_case_cname ("TYPE_");



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