diff options
author | Jürg Billeter <j@bitron.ch> | 2009-04-15 21:41:38 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-04-15 21:42:56 +0200 |
commit | 4376e84c5c49cd42a022544c302e350c157455af (patch) | |
tree | 9e7db20f09dcc88d912ef8fb6333509c6edafaee /gobject | |
parent | e7cc8a45c75b8a4da8787341c00d1d28ff0bce96 (diff) | |
download | vala-4376e84c5c49cd42a022544c302e350c157455af.tar.gz |
Fix temp variable declaration in internal VAPI properties
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/valaccodebasemodule.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gobject/valaccodebasemodule.vala b/gobject/valaccodebasemodule.vala index 908b257d8..6ba6e1799 100644 --- a/gobject/valaccodebasemodule.vala +++ b/gobject/valaccodebasemodule.vala @@ -1055,13 +1055,19 @@ internal class Vala.CCodeBaseModule : CCodeModule { check_type (prop.property_type); int old_next_temp_var_id = next_temp_var_id; + var old_temp_vars = temp_vars; + var old_temp_ref_vars = temp_ref_vars; var old_variable_name_map = variable_name_map; next_temp_var_id = 0; + temp_vars = new ArrayList<LocalVariable> (); + temp_ref_vars = new ArrayList<LocalVariable> (); variable_name_map = new HashMap<string,string> (str_hash, str_equal); prop.accept_children (codegen); next_temp_var_id = old_next_temp_var_id; + temp_vars = old_temp_vars; + temp_ref_vars = old_temp_ref_vars; variable_name_map = old_variable_name_map; } |