[vala/0.48] codegen: GArray, GByteArray and GPtrArray are reference counted



commit 5a8a58ecba5c85da89ab14e66ae78dcc7e2f3ded
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon May 3 09:01:04 2021 +0200

    codegen: GArray, GByteArray and GPtrArray are reference counted

 codegen/valaccodebasemodule.vala | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 73c1019ef..509b76a8d 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -3755,11 +3755,8 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                var ccomma = new CCodeCommaExpression ();
 
                if (context.profile == Profile.GOBJECT
-                   && type.type_symbol != null && !is_reference_counting (type.type_symbol) &&
-                   (type.type_symbol.is_subtype_of (gstringbuilder_type)
-                    || type.type_symbol.is_subtype_of (garray_type)
-                    || type.type_symbol.is_subtype_of (gbytearray_type)
-                    || type.type_symbol.is_subtype_of (gptrarray_type))) {
+                   && type.type_symbol != null && !is_reference_counting (type.type_symbol)
+                   && type.type_symbol.is_subtype_of (gstringbuilder_type)) {
                        ccall.add_argument (new CCodeConstant ("TRUE"));
                } else if (context.profile == Profile.GOBJECT
                    && type.type_symbol == gthreadpool_type) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]