[vala/0.48] codegen: Don't ever create null-aware free macro for GenericType
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] codegen: Don't ever create null-aware free macro for GenericType
- Date: Sun, 14 Mar 2021 15:47:45 +0000 (UTC)
commit 718b00c7021f1eae37d02fc27900269e48aa63e6
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 853cf039b..0173a760d 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -3695,7 +3695,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]