summaryrefslogtreecommitdiff
path: root/codegen/valagasyncmodule.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-05-17 08:56:12 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2019-05-17 09:08:37 +0200
commita929a44437a46eb9f814160c4ecf807a94ba2138 (patch)
tree666f9f8c240faba9dabc47253eceeb6b6ae8b031 /codegen/valagasyncmodule.vala
parentef0973068d1786206bc98c4861f0ea9d2617edb5 (diff)
downloadvala-a929a44437a46eb9f814160c4ecf807a94ba2138.tar.gz
codegen: When freeing local variables don't stop at "switch" on "continue"
So distinguish between BreakStatement and ContinueStatement to make the correct decision in append_local_free(). Fixes https://gitlab.gnome.org/GNOME/vala/issues/799
Diffstat (limited to 'codegen/valagasyncmodule.vala')
-rw-r--r--codegen/valagasyncmodule.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/valagasyncmodule.vala b/codegen/valagasyncmodule.vala
index dfc308f4d..68a13dd29 100644
--- a/codegen/valagasyncmodule.vala
+++ b/codegen/valagasyncmodule.vala
@@ -724,7 +724,7 @@ public class Vala.GAsyncModule : GtkModule {
set_error.add_argument (error_expr);
ccode.add_expression (set_error);
- append_local_free (current_symbol, false);
+ append_local_free (current_symbol);
// We already returned the error above, we must not return anything else here.
var unref = new CCodeFunctionCall (new CCodeIdentifier ("g_object_unref"));