From: Jeremy Philippe Date: Fri, 23 Oct 2020 13:40:18 +0000 (+0200) Subject: codegen: More use of delegate_target_type and delegate_target_destroy_type (2) X-Git-Tag: 0.51.1~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a74d7ac29f2fd0717fafd2f126c586b9b63dc71c;p=thirdparty%2Fvala.git codegen: More use of delegate_target_type and delegate_target_destroy_type (2) --- diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala index 09c1ccb17..2d10ad046 100644 --- a/codegen/valaccodemethodcallmodule.vala +++ b/codegen/valaccodemethodcallmodule.vala @@ -636,7 +636,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule { set_delegate_target (expr, temp_ref); if (deleg_type.is_disposable ()) { - temp_var = get_temp_variable (delegate_target_type, true, null, true); + temp_var = get_temp_variable (delegate_target_destroy_type, true, null, true); temp_ref = get_variable_cexpression (temp_var.name); emit_temp_var (temp_var);