]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix .begin on async methods returning structs
authorJürg Billeter <j@bitron.ch>
Thu, 14 Jun 2012 12:26:33 +0000 (14:26 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 23 Jun 2012 15:34:33 +0000 (17:34 +0200)
codegen/valaccodemethodcallmodule.vala

index fa3f727f6f39081ea9c4faa77c581bcd7d08baa0..5eff2803a649a41bfc12e6ac00d3a3b6f28b0e4b 100644 (file)
@@ -616,6 +616,11 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
                        }
                }
 
+               if (async_call == ccall) {
+                       // skip out parameter for .begin() calls
+                       return_result_via_out_param = false;
+               }
+
                CCodeExpression out_param_ref = null;
 
                if (return_result_via_out_param) {