Commit 90290081 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

also free the array itself in _vala_array_free

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

	* gobject/valacodegeneratorsourcefile.vala: also free the array itself
	  in _vala_array_free

svn path=/trunk/; revision=394
parent 36d47bc4
2007-07-26 Jürg Billeter <j@bitron.ch>
* gobject/valacodegeneratorsourcefile.vala: also free the array itself
in _vala_array_free
2007-07-26 Jürg Billeter <j@bitron.ch>
* gobject/valacodegenerator.vala: unref the item in foreach as
......
......@@ -148,6 +148,10 @@ public class Vala.CodeGenerator {
fun.block = new CCodeBlock ();
fun.block.add_statement (cif);
var carrfree = new CCodeFunctionCall (new CCodeIdentifier ("g_free"));
carrfree.add_argument (new CCodeIdentifier ("array"));
fun.block.add_statement (new CCodeExpressionStatement (carrfree));
source_type_member_definition.append (fun);
}
......
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