From: Rico Tzschichholz Date: Fri, 11 Jan 2019 22:05:44 +0000 (+0100) Subject: codegen: Set owner for ValaDestroyNotify (POSIX) X-Git-Tag: 0.43.5~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef397d8b93a409cc68250692c61dd7b822f51712;p=thirdparty%2Fvala.git codegen: Set owner for ValaDestroyNotify (POSIX) Fixes https://gitlab.gnome.org/GNOME/vala/issues/730 --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index ae1ad0c2c..070489be1 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -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); }