]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Don't add generics arguments/parameters to async finish method
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 9 Mar 2021 14:52:30 +0000 (15:52 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 13 Mar 2021 20:43:33 +0000 (21:43 +0100)
codegen/valaccodemethodmodule.vala

index 2ec6b8899ac7f9a3fbe5bea449694ef7d48e3c19..025c0535185bd6b2b8dd433e5c2edbb6ee46922c 100644 (file)
@@ -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;