]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Set owner for ValaDestroyNotify (POSIX)
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 11 Jan 2019 22:05:44 +0000 (23:05 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 11 Jan 2019 22:33:02 +0000 (23:33 +0100)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/730

codegen/valaccodebasemodule.vala

index ae1ad0c2c295942f0ba064ad0bc9ec5ba65fb78b..070489be18b85e1cb2f6dea6d6624c34a3a89607 100644 (file)
@@ -514,6 +514,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                        destroy_notify = new Delegate ("ValaDestroyNotify", new VoidType ());
                        destroy_notify.add_parameter (new Parameter ("data", new PointerType (new VoidType ())));
                        destroy_notify.has_target = false;
+                       destroy_notify.owner = root_symbol.scope;
                        delegate_target_destroy_type = new DelegateType (destroy_notify);
                }