diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-07-30 12:11:06 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-07-30 12:39:11 +0200 |
commit | 8c9f486a05d7d095e23d4209ec6801d398bc91fe (patch) | |
tree | 9a02e4a4a0724617714b23ca817182b1d6ce4061 | |
parent | a62bda136d404743305161326390f3db3880c9d5 (diff) | |
download | vala-8c9f486a05d7d095e23d4209ec6801d398bc91fe.tar.gz |
codegen: Call ref_sink on objects passed to generic type
Regression of 6f1d0947bed9260436e7d2da18977b3925cdb0bd
Fixes https://gitlab.gnome.org/GNOME/vala/issues/655
-rw-r--r-- | codegen/valaccodebasemodule.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index 657d7ddbb..14886a3cc 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -5847,7 +5847,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { var result = ((GLibValue) value).copy (); if (type.value_owned - && target_type is ObjectType && !target_type.floating_reference + && (target_type is GenericType || (target_type is ObjectType && !target_type.floating_reference)) && type.floating_reference) { /* floating reference, sink it. */ |