]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc: Fix ownership declarations of Constants
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 11 Oct 2019 14:19:19 +0000 (16:19 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 14 Oct 2019 07:43:30 +0000 (09:43 +0200)
libvaladoc/api/typereference.vala

index e3f46b307d7530e760487d1933fd3acc8bda57d1..1f099d7c1b01a39932621d639a6e9d14b1e4c0a1 100644 (file)
@@ -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;