]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix crash with owned property getters and interfaces
authorJürg Billeter <j@bitron.ch>
Sun, 21 Mar 2010 18:40:03 +0000 (19:40 +0100)
committerJürg Billeter <j@bitron.ch>
Sun, 21 Mar 2010 18:40:03 +0000 (19:40 +0100)
vala/valainterface.vala

index 0ff381d1793b8a6bc89f7d0cdc93bf43ea8c86ef..54890cf339e61cd5a9cea386436d0a2e42e3a3d7 100644 (file)
@@ -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_");