Commit ba731c8a authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

fix freeing local variables of all blocks before returning from function

2007-07-27  Juerg Billeter  <j@bitron.ch>

	* gobject/valacodegenerator.vala: fix freeing local variables of all
	  blocks before returning from function

svn path=/trunk/; revision=397
parent 244e52c0
2007-07-27 Jürg Billeter <j@bitron.ch>
* gobject/valacodegenerator.vala: fix freeing local variables of all
blocks before returning from function
2007-07-27 Jürg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: use weak variables in foreach statements
......
......@@ -1546,7 +1546,7 @@ public class Vala.CodeGenerator : CodeVisitor {
}
if (sym.parent_symbol is Block) {
found = found || append_local_free_expr (sym.parent_symbol, ccomma, stop_at_loop);
found = append_local_free_expr (sym.parent_symbol, ccomma, stop_at_loop) || found;
}
return found;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment