]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Fix compatible/disposable check between structs and their subtypes 059b7486bff5f1b01b8c19fca06494a7936a24d9
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 4 Oct 2019 12:12:46 +0000 (14:12 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 4 Oct 2019 13:19:48 +0000 (15:19 +0200)
commit059b7486bff5f1b01b8c19fca06494a7936a24d9
tree52e745bc3f97e444469f89ab2f1d82c2ca4ddfb5
parent7da59be55f0bccda7787209fecbb49a7042b4f70
vala: Fix compatible/disposable check between structs and their subtypes

This fixes memory leaks due to missing copy/destroy and improperly created
dup functions and allows direct assignment between structs and their
subtypes.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/861
codegen/valaccodestructmodule.vala
tests/Makefile.am
tests/structs/struct-base-types.vala [new file with mode: 0644]
vala/valadatatype.vala
vala/valastruct.vala