From: Rico Tzschichholz Date: Fri, 11 Oct 2019 14:19:19 +0000 (+0200) Subject: libvaladoc: Fix ownership declarations of Constants X-Git-Tag: 0.44.10~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dbb1da2d27d2b983b746d02fd7396caa44d551a;p=thirdparty%2Fvala.git libvaladoc: Fix ownership declarations of Constants --- diff --git a/libvaladoc/api/typereference.vala b/libvaladoc/api/typereference.vala index e3f46b307..1f099d7c1 100644 --- a/libvaladoc/api/typereference.vala +++ b/libvaladoc/api/typereference.vala @@ -144,6 +144,8 @@ public class Valadoc.Api.TypeReference : Item { return Ownership.OWNED; } return Ownership.DEFAULT; + } else if (type.parent_node is Vala.Constant) { + return Ownership.DEFAULT; } if (type.is_weak ()) { return Ownership.UNOWNED;