diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2013-10-06 21:06:46 +0200 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2013-10-06 21:10:49 +0200 |
commit | a09c9e93af0d64b9331c274de573465fe070b722 (patch) | |
tree | 0738c9086ac06489e730d253e9d453570f0d678f /vala/valaobjectcreationexpression.vala | |
parent | 5f7c87354bab55477739405ecdc41e69a8de45f8 (diff) | |
download | vala-a09c9e93af0d64b9331c274de573465fe070b722.tar.gz |
Set parent_node and always copy datatype when assigned to code nodes.
This is a delicate patch that fixes subtle memory corruption bugs in
libvala users and the compiler itself.
It might break some application, so this commit is open for testing.
Diffstat (limited to 'vala/valaobjectcreationexpression.vala')
-rw-r--r-- | vala/valaobjectcreationexpression.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valaobjectcreationexpression.vala b/vala/valaobjectcreationexpression.vala index a4121f3aa..56fb3ae34 100644 --- a/vala/valaobjectcreationexpression.vala +++ b/vala/valaobjectcreationexpression.vala @@ -32,7 +32,7 @@ public class Vala.ObjectCreationExpression : Expression { public DataType type_reference { get { return _data_type; } set { - _data_type = value; + _data_type = value.copy (); _data_type.parent_node = this; } } |