[vala/staging] codegen: Don't apply ref_sink_function if target_type is floating_reference
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] codegen: Don't apply ref_sink_function if target_type is floating_reference
- Date: Sun, 15 Apr 2018 11:40:39 +0000 (UTC)
commit 6f1d0947bed9260436e7d2da18977b3925cdb0bd
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Apr 15 13:08:23 2018 +0200
codegen: Don't apply ref_sink_function if target_type is floating_reference
codegen/valaccodebasemodule.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 3055e45..6f775e0 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.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]