[vala/0.36] tests: Properties with NoAccessorMethod return heap-allocated structs



commit 42997327baad7c9ae9090ad2b7410198b5b0fa0e
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 2e2b2ee05..f50e22fe5 100644
--- a/tests/objects/properties.vala
+++ b/tests/objects/properties.vala
@@ -8,7 +8,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]