]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: GArray, GByteArray and GPtrArray are reference counted
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 3 May 2021 07:01:04 +0000 (09:01 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 3 May 2021 07:11:56 +0000 (09:11 +0200)
codegen/valaccodebasemodule.vala

index 34963707ddb16867f5d75a68565981be9fd46435..fc52e7b8cb95800a2d6634cac15b6cbae0cd8b96 100644 (file)
@@ -3789,11 +3789,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) {