]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Don't ever create null-aware free macro for GenericType
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 9 Mar 2021 14:52:30 +0000 (15:52 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 13 Mar 2021 20:43:33 +0000 (21:43 +0100)
codegen/valaccodebasemodule.vala

index c712467b821a2bdafeca8f6d008b04fd17aeb105..ff67f79e3029f4312c2405b4983a89a9692dfe7e 100644 (file)
@@ -3722,7 +3722,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;