]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: No-accessor struct properties in GLib.Object class must be owned a6441ec3c27e059d32501a4e09c937ac668f3ad9
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 9 May 2019 08:17:36 +0000 (10:17 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 16 May 2019 19:17:36 +0000 (21:17 +0200)
commita6441ec3c27e059d32501a4e09c937ac668f3ad9
treed6eeb3a5a4c7ed588161bcd1312640dfa5806141
parentd50c3271c735be78580b311694f1815345601169
vala: No-accessor struct properties in GLib.Object class must be owned

Real structs are returned as heap-allocated structor by g_object_get() and
not defining them with owned getter results in memory leaks.

Additionally force DelegateType, PointerType and ValueType as unowned to
preserve the current behaviour for binding generation.
tests/Makefile.am
tests/objects/property-real-struct-no-accessor.test [new file with mode: 0644]
vala/valapropertyaccessor.vala