summaryrefslogtreecommitdiff
path: root/vala/valapointerindirection.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-12-21 13:52:54 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2020-12-21 13:52:54 +0100
commitdf7a984607f55338ff2dde6f2fd324dc363a46b4 (patch)
tree992cbd0a005368251d0b068342d4d0e0af2a1545 /vala/valapointerindirection.vala
parent60f257854f2ed0f2fd24101112fd75b65494572b (diff)
downloadvala-df7a984607f55338ff2dde6f2fd324dc363a46b4.tar.gz
vala: value_type of PointerIndirection expressions must not be owned
A member-access making the wrong assumption of a previous copy resulted in a double free. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1118
Diffstat (limited to 'vala/valapointerindirection.vala')
-rw-r--r--vala/valapointerindirection.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/vala/valapointerindirection.vala b/vala/valapointerindirection.vala
index 6c17d3598..5e14de7f6 100644
--- a/vala/valapointerindirection.vala
+++ b/vala/valapointerindirection.vala
@@ -104,6 +104,7 @@ public class Vala.PointerIndirection : Expression {
return false;
}
value_type = pointer_type.base_type;
+ value_type.value_owned = false;
} else {
error = true;
Report.error (source_reference, "Pointer indirection not supported for this expression");