2008-12-16 Jürg Billeter <j@bitron.ch>
* vala/valafield.vala:
* gobject/valaccodebasemodule.vala:
Fix crash and temporary variable declarations when using struct
initialization methods in field initializer, fixes bug 559459
svn path=/trunk/; revision=2184
+2008-12-16 Jürg Billeter <j@bitron.ch>
+
+ * vala/valafield.vala:
+ * gobject/valaccodebasemodule.vala:
+
+ Fix crash and temporary variable declarations when using struct
+ initialization methods in field initializer, fixes bug 559459
+
2008-12-16 Jürg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala:
instance_init_fragment.append (new CCodeExpressionStatement (new CCodeAssignment (array_len_lhs, (CCodeExpression) size.ccodenode)));
}
}
+
+ append_temp_decl (instance_init_fragment, temp_vars);
+ temp_vars.clear ();
}
if (requires_destroy (f.field_type) && instance_finalize_fragment != null) {
lock_used = used;
}
+ public override void replace_expression (Expression old_node, Expression new_node) {
+ if (initializer == old_node) {
+ initializer = new_node;
+ }
+ }
+
public override void replace_type (DataType old_type, DataType new_type) {
if (field_type == old_type) {
field_type = new_type;