From: Rico Tzschichholz Date: Mon, 27 Feb 2017 14:45:40 +0000 (+0100) Subject: codegen: Cast *_destroy_func arg of generic-types calls to GDestroyNotify X-Git-Tag: 0.35.7~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39e351c24316aa5fce340b89c4698f4035949aaf;p=thirdparty%2Fvala.git codegen: Cast *_destroy_func arg of generic-types calls to GDestroyNotify --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index 951289562..4be48a044 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -4482,7 +4482,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { return; } arg_map.set (get_param_pos (0.1 * type_param_index + 0.04), new CCodeCastExpression (dup_func, "GBoxedCopyFunc")); - arg_map.set (get_param_pos (0.1 * type_param_index + 0.06), get_destroy_func_expression (type_arg, is_chainup)); + arg_map.set (get_param_pos (0.1 * type_param_index + 0.06), new CCodeCastExpression (get_destroy_func_expression (type_arg, is_chainup), "GDestroyNotify")); } else { arg_map.set (get_param_pos (0.1 * type_param_index + 0.04), new CCodeConstant ("NULL")); arg_map.set (get_param_pos (0.1 * type_param_index + 0.06), new CCodeConstant ("NULL"));