2009-01-07 Jürg Billeter <j@bitron.ch>
* gobject/valaccodebasemodule.vala:
Fix critical when using immutable classes without copy function
svn path=/trunk/; revision=2290
+2009-01-07 Jürg Billeter <j@bitron.ch>
+
+ * gobject/valaccodebasemodule.vala:
+
+ Fix critical when using immutable classes without copy function
+
2009-01-07 Jürg Billeter <j@bitron.ch>
* vala/valasymbolresolver.vala:
} else if (cl != null && cl.is_immutable) {
// allow duplicates of immutable instances as for example strings
dup_function = type.data_type.get_dup_function ();
+ if (dup_function == null) {
+ dup_function = "";
+ }
} else if (type is ValueType) {
dup_function = type.data_type.get_dup_function ();
if (dup_function == null && type.nullable) {