]> 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>
Wed, 19 May 2021 06:52:24 +0000 (08:52 +0200)
codegen/valaccodebasemodule.vala

index f47bed2743972cab5d8202fffa0e05fd69277d61..141f194674588a5a5be350b032bea511d030541d 100644 (file)
@@ -3782,11 +3782,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) {