]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Transfer floating-reference attribute while casting
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 8 May 2018 16:37:12 +0000 (18:37 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 9 May 2018 06:42:46 +0000 (08:42 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=795920

vala/valacastexpression.vala

index 8d35e1e8603b46dd1b6a3d38e6f70f7633e07355..5c050be2a2dc81161fff91259682cb7280675dbd 100644 (file)
@@ -160,6 +160,7 @@ public class Vala.CastExpression : Expression {
 
                value_type = type_reference;
                value_type.value_owned = inner.value_type.value_owned;
+               value_type.floating_reference = inner.value_type.floating_reference;
 
                if (is_silent_cast) {
                        value_type.nullable = true;