From: Rico Tzschichholz Date: Tue, 8 May 2018 16:37:12 +0000 (+0200) Subject: vala: Transfer floating-reference attribute while casting X-Git-Tag: 0.41.90~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=711cbc475f7075682d4e257be081c9b59c33069e;p=thirdparty%2Fvala.git vala: Transfer floating-reference attribute while casting https://bugzilla.gnome.org/show_bug.cgi?id=795920 --- diff --git a/vala/valacastexpression.vala b/vala/valacastexpression.vala index 8d35e1e86..5c050be2a 100644 --- a/vala/valacastexpression.vala +++ b/vala/valacastexpression.vala @@ -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;