diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-05-17 08:56:12 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-05-17 09:08:37 +0200 |
commit | a929a44437a46eb9f814160c4ecf807a94ba2138 (patch) | |
tree | 666f9f8c240faba9dabc47253eceeb6b6ae8b031 /codegen/valagasyncmodule.vala | |
parent | ef0973068d1786206bc98c4861f0ea9d2617edb5 (diff) | |
download | vala-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.vala | 2 |
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")); |