[vala/0.50] codegen: More use of delegate_target_type and delegate_target_destroy_type (2)



commit c02a2e1b57166ac8f178f7297644f5eacd0cdceb
Author: Jeremy Philippe <jeremy philippe gmail com>
Date:   Fri Oct 23 15:40:18 2020 +0200

    codegen: More use of delegate_target_type and delegate_target_destroy_type (2)

 codegen/valaccodemethodcallmodule.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]