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



commit 38dd802568df7890d7b514b215c6f7fff0798824
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 c712467b8..ff67f79e3 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -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;


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