From a96215555e42b61e40bfcbf64af2cfadf036a0bd Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Tue, 9 Mar 2021 15:52:30 +0100 Subject: [PATCH] codegen: Don't add generics arguments/parameters to async finish method --- codegen/valaccodemethodmodule.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala index 2ec6b8899..025c05351 100644 --- a/codegen/valaccodemethodmodule.vala +++ b/codegen/valaccodemethodmodule.vala @@ -979,7 +979,7 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule { cparam_map.set (get_param_pos (get_ccode_instance_pos (m)), class_param); } - if (is_gtypeinstance_creation_method (m)) { + if (is_gtypeinstance_creation_method (m) && (direction & 1) == 1) { // memory management for generic types int type_param_index = 0; var cl = (Class) m.parent_symbol; -- 2.47.2