From: JCWasmx86 Date: Sun, 5 Jun 2022 20:12:43 +0000 (+0200) Subject: Fixed properties X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f80e23198ebd99b6faa6a2e48ad6b090241ff9e;p=thirdparty%2Fvala.git Fixed properties --- diff --git a/dbusgen/valadbusparser.vala b/dbusgen/valadbusparser.vala index 4222fdc95..a05df00e8 100644 --- a/dbusgen/valadbusparser.vala +++ b/dbusgen/valadbusparser.vala @@ -447,7 +447,10 @@ public class Vala.DBusParser : CodeVisitor { } if (access == "read" || access == "readwrite") { - current_property.get_accessor = new PropertyAccessor (true, false, false, current_property.property_type.copy (), null, get_current_src ()); + var get_type = current_property.property_type.copy (); + if (data_type is StructValueType) + get_type.value_owned = true; + current_property.get_accessor = new PropertyAccessor (true, false, false, get_type, null, get_current_src ()); } if (access == "write" || access == "readwrite") { var set_type = current_property.property_type.copy ();