From: Rico Tzschichholz Date: Tue, 9 Mar 2021 14:52:30 +0000 (+0100) Subject: codegen: Don't add generics arguments/parameters to async finish method X-Git-Tag: 0.51.91~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4eb297a12758197cf9161fb684b37c7269d197a9;p=thirdparty%2Fvala.git codegen: Don't add generics arguments/parameters to async finish method --- diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala index d04f54a88..fc99a58aa 100644 --- a/codegen/valaccodemethodmodule.vala +++ b/codegen/valaccodemethodmodule.vala @@ -977,7 +977,7 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule { // memory management for generic types List? type_parameters = null; - if (is_gtypeinstance_creation_method (m)) { + if (is_gtypeinstance_creation_method (m) && (direction & 1) == 1) { type_parameters = ((Class) m.parent_symbol).get_type_parameters (); } else if (!m.closure && (direction & 1) == 1) { type_parameters = m.get_type_parameters ();