From: Rico Tzschichholz Date: Sun, 15 Apr 2018 11:08:23 +0000 (+0200) Subject: codegen: Don't apply ref_sink_function if target_type is floating_reference X-Git-Tag: 0.41.90~180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f1d0947bed9260436e7d2da18977b3925cdb0bd;p=thirdparty%2Fvala.git codegen: Don't apply ref_sink_function if target_type is floating_reference --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index 3055e45c9..6f775e052 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -5723,6 +5723,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { var result = ((GLibValue) value).copy (); if (type.value_owned + && target_type is ObjectType && !target_type.floating_reference && type.floating_reference) { /* floating reference, sink it. */