]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix temp variable declaration in internal VAPI properties
authorJürg Billeter <j@bitron.ch>
Wed, 15 Apr 2009 19:41:38 +0000 (21:41 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 15 Apr 2009 19:42:56 +0000 (21:42 +0200)
gobject/valaccodebasemodule.vala

index 908b257d885ba95c4986d00371f9bef8006421c7..6ba6e1799d39c106c859eae3c10d32b5645f1ce1 100644 (file)
@@ -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;
        }