]> 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>
Tue, 9 Mar 2021 14:52:30 +0000 (15:52 +0100)
codegen/valaccodebasemodule.vala

index 8c5926fb06fb13269049bc063344c3e5a5cd50e6..ae6fddbf3c0bd44ca815e788b6d117f327e6bf56 100644 (file)
@@ -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;