[vala/0.50] codegen: Don't add generics arguments/parameters to async finish method
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.50] codegen: Don't add generics arguments/parameters to async finish method
- Date: Sun, 14 Mar 2021 15:47:54 +0000 (UTC)
commit a96215555e42b61e40bfcbf64af2cfadf036a0bd
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Mar 9 15:52:30 2021 +0100
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]