[vala/staging] codegen: Don't ever create null-aware free macro for GenericType



commit 0c117bb08ee49486d077c6547279fef46b727cbf
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Mar 9 15:52:30 2021 +0100

    codegen: Don't ever create null-aware free macro for GenericType

 codegen/valaccodebasemodule.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]