summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-03-09 15:52:30 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2021-03-13 21:43:33 +0100
commita96215555e42b61e40bfcbf64af2cfadf036a0bd (patch)
tree02320dadc28b32264ff638184a8459cf858a786c
parent38dd802568df7890d7b514b215c6f7fff0798824 (diff)
downloadvala-a96215555e42b61e40bfcbf64af2cfadf036a0bd.tar.gz
codegen: Don't add generics arguments/parameters to async finish method
-rw-r--r--codegen/valaccodemethodmodule.vala2
1 files changed, 1 insertions, 1 deletions
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;