]> 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>
Fri, 11 Oct 2019 14:20:49 +0000 (16:20 +0200)
libvaladoc/api/typereference.vala

index 41b766e41191536acb292ec4bed35ec7209ecb81..c328eaf399f5a8438b3e0c5245954d8fae002b5e 100644 (file)
@@ -62,6 +62,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;