]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Actually free data when using "remove(_all)" on GLib.Queue/(S)List
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 14 Oct 2021 17:44:55 +0000 (19:44 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 15 Oct 2021 11:51:01 +0000 (13:51 +0200)
commit6ac079db81d5847490957c09ae898304862bfe44
treef4e4340be5e594c4aa757854e22ad403c56ddc7c
parentba0d8e95c28f299170766c98ec4d8bf451da92d1
codegen: Actually free data when using "remove(_all)" on GLib.Queue/(S)List

When using e.g. GLib.List.remove() there is no context/feedback whether an
item was removed or needed manual free'ing.

Replace such calls with custom wrappers where items required free'ing if
they were found.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1238
codegen/valaccodemethodcallmodule.vala
tests/Makefile.am
tests/basic-types/glists_remove.c-expected [new file with mode: 0644]
tests/basic-types/glists_remove.vala [new file with mode: 0644]
vapi/glib-2.0.vapi