summaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-02-06 17:52:55 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2018-02-09 08:08:17 +0100
commit0c25c3c05540bd8536704f93c01c883b7a447b2c (patch)
tree85e30f5f5946e4518b8f8aed1501330df27dcef5 /codegen
parent7a6fdb04c1d0ddfa8bb962d9341650a41786a077 (diff)
downloadvala-0c25c3c05540bd8536704f93c01c883b7a447b2c.tar.gz
codegen: Fix GDestroyNotify of delegate parameters in delegate declaration
delegate void Func (owned Func func); incompatible pointer type: expected ‘void (**)(void *)’ but argument is of type ‘GDestroyNotify {aka void (*)(void *)}’ https://bugzilla.gnome.org/show_bug.cgi?id=639059
Diffstat (limited to 'codegen')
-rw-r--r--codegen/valaccodedelegatemodule.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/valaccodedelegatemodule.vala b/codegen/valaccodedelegatemodule.vala
index abb88929a..30a2e4b4f 100644
--- a/codegen/valaccodedelegatemodule.vala
+++ b/codegen/valaccodedelegatemodule.vala
@@ -74,7 +74,7 @@ public class Vala.CCodeDelegateModule : CCodeArrayModule {
cparam = new CCodeParameter (get_delegate_target_cname (get_variable_cname (param.name)), "void*");
cfundecl.add_parameter (cparam);
if (deleg_type.is_disposable ()) {
- cparam = new CCodeParameter (get_delegate_target_destroy_notify_cname (get_variable_cname (param.name)), "GDestroyNotify*");
+ cparam = new CCodeParameter (get_delegate_target_destroy_notify_cname (get_variable_cname (param.name)), "GDestroyNotify");
cfundecl.add_parameter (cparam);
}
}