[vala/staging: 1/5] tests: Properties with NoAccessorMethod return heap-allocated structs



commit d50c3271c735be78580b311694f1815345601169
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu May 9 18:51:43 2019 +0200

    tests: Properties with NoAccessorMethod return heap-allocated structs

 tests/objects/properties.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/objects/properties.vala b/tests/objects/properties.vala
index cc5a6d839..b3fc2c860 100644
--- a/tests/objects/properties.vala
+++ b/tests/objects/properties.vala
@@ -9,7 +9,7 @@ public struct RealStruct {
 
 public class NonPrivAccess : Object {
        [NoAccessorMethod]
-       public RealStruct real_struct { get; set; }
+       public RealStruct real_struct { owned get; set; }
 }
 
 public class Sample : Object {


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