]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GAsync: Fix async methods with out parameters
authorJürg Billeter <j@bitron.ch>
Wed, 16 Sep 2009 16:49:31 +0000 (18:49 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 16 Sep 2009 16:49:31 +0000 (18:49 +0200)
codegen/valaccodemethodmodule.vala

index c6fa0337669eb75a1535dae3ad2e3c09f3f2879a..30a90504749759c4ccfdaf124faafc0cf8b81334 100644 (file)
@@ -478,7 +478,7 @@ internal class Vala.CCodeMethodModule : CCodeStructModule {
                                                                type_check.line = function.line;
                                                                cinit.append (type_check);
                                                        }
-                                               } else {
+                                               } else if (!m.coroutine) {
                                                        // ensure that the passed reference for output parameter is cleared
                                                        var a = new CCodeAssignment (new CCodeUnaryExpression (CCodeUnaryOperator.POINTER_INDIRECTION, get_variable_cexpression (param.name)), new CCodeConstant ("NULL"));
                                                        var cblock = new CCodeBlock ();