]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix async method calls in simple expression statements
authorJürg Billeter <j@bitron.ch>
Fri, 19 Dec 2008 20:06:36 +0000 (20:06 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 19 Dec 2008 20:06:36 +0000 (20:06 +0000)
2008-12-19  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodebasemodule.vala:

Fix async method calls in simple expression statements

svn path=/trunk/; revision=2229

ChangeLog
gobject/valaccodebasemodule.vala

index ac26fba43411de46c3358ca36a470bba8326a45c..01cd28092c35b27110797ed4a1510ce3d5814295 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-19  Jürg Billeter  <j@bitron.ch>
+
+       * gobject/valaccodebasemodule.vala:
+
+       Fix async method calls in simple expression statements
+
 2008-12-19  Jürg Billeter  <j@bitron.ch>
 
        * gobject/valaccodebasemodule.vala:
index 1d1249bc75c395edd4142b1189880fa649deffc1..195f477ad485f9bbbbda7cf0a2d8a95dae100de8 100644 (file)
@@ -1974,7 +1974,8 @@ public class Vala.CCodeBaseModule : CCodeModule {
 
                /* free temporary objects */
 
-               if (((Gee.List<LocalVariable>) temp_vars).size == 0) {
+               if (((Gee.List<LocalVariable>) temp_vars).size == 0
+                    && pre_statement_fragment == null) {
                        /* nothing to do without temporary variables */
                        return;
                }