From 01ce9e24cc5953f44a7dd9a3d93347835e26030d Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 21 Dec 2014 23:52:51 +0100 Subject: fixed crash bug in TestDomain -- if a class has an Owned handle the owner must point to the managed object directly responsible for the lifetime of this handle. Fixed this by making AttributeDescriptor a managed class (though this is not an optimal solution) and using a ManagedVector --- test/core/model/TestDomain.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/core') diff --git a/test/core/model/TestDomain.hpp b/test/core/model/TestDomain.hpp index dd58524..d4421a4 100644 --- a/test/core/model/TestDomain.hpp +++ b/test/core/model/TestDomain.hpp @@ -36,7 +36,8 @@ static Rooted constructTypeSystem(Manager &mgr) Rooted string{new StringType(mgr, sys)}; sys->addType(string); Rooted string_struct{new StructType( - mgr, "text", sys, {{"content", "", false, sys->acquire(string)}})}; + mgr, "text", sys, {new StructType::AttributeDescriptor( + mgr, "content", "", false, string)})}; sys->addType(string_struct); return sys; -- cgit v1.2.3