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/valapointertype.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/valapointertype.vala')
-rw-r--r-- | vala/valapointertype.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valapointertype.vala b/vala/valapointertype.vala index 4bfaf34ee..5ec9228c5 100644 --- a/vala/valapointertype.vala +++ b/vala/valapointertype.vala @@ -32,7 +32,7 @@ public class Vala.PointerType : DataType { public DataType base_type { get { return _base_type; } set { - _base_type = value; + _base_type = value.copy (); _base_type.parent_node = this; } } |