]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: More use of delegate_target_type and delegate_target_destroy_type (2)
authorJeremy Philippe <jeremy.philippe@gmail.com>
Fri, 23 Oct 2020 13:40:18 +0000 (15:40 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 23 Oct 2020 13:41:04 +0000 (15:41 +0200)
codegen/valaccodemethodcallmodule.vala

index 09c1ccb1723968516fa37d2852626f4533d508c0..2d10ad046a845714975dded7cb734b18eafc876c 100644 (file)
@@ -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);