]> 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 07:05:02 +0000 (09:05 +0200)
codegen/valaccodebasemodule.vala

index 73c1019eff01efdfc6e5a6a17d7a4fab439b6f12..509b76a8d5d39f8f6af3164b9609f327aae04860 100644 (file)
@@ -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) {