From: Rico Tzschichholz Date: Mon, 3 May 2021 07:01:04 +0000 (+0200) Subject: codegen: GArray, GByteArray and GPtrArray are reference counted X-Git-Tag: 0.53.1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14481195e5ba14347b7c46c0863704843ea5a04b;p=thirdparty%2Fvala.git codegen: GArray, GByteArray and GPtrArray are reference counted --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index 34963707d..fc52e7b8c 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -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) {