From: Rico Tzschichholz Date: Tue, 9 Mar 2021 14:52:30 +0000 (+0100) Subject: codegen: Don't ever create null-aware free macro for GenericType X-Git-Tag: 0.51.91~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c117bb08ee49486d077c6547279fef46b727cbf;p=thirdparty%2Fvala.git codegen: Don't ever create null-aware free macro for GenericType --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index 8c5926fb0..ae6fddbf3 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -3768,7 +3768,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { } } - if (!is_gcollection && ccall.call is CCodeIdentifier && !(type is ArrayType) && !is_macro_definition) { + if (!is_gcollection && ccall.call is CCodeIdentifier && !(type is ArrayType) && !(type is GenericType) && !is_macro_definition) { // generate and use NULL-aware free macro to simplify code var freeid = (CCodeIdentifier) ccall.call;