Fix crash when passing delegate as D-Bus callback, fixes bug 545688
authorJürg Billeter <j@bitron.ch>
Fri, 1 Aug 2008 13:05:08 +0000 (13:05 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 1 Aug 2008 13:05:08 +0000 (13:05 +0000)
2008-08-01  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodedynamicmethodbinding.vala:

Fix crash when passing delegate as D-Bus callback, fixes bug 545688

svn path=/trunk/; revision=1730

ChangeLog
gobject/valaccodedynamicmethodbinding.vala

index 0844269..4786926 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-01  Jürg Billeter  <j@bitron.ch>
+
+       * gobject/valaccodedynamicmethodbinding.vala:
+
+       Fix crash when passing delegate as D-Bus callback, fixes bug 545688
+
 2008-07-30  Jürg Billeter  <j@bitron.ch>
 
        * vapi/sqlite3.vapi:
index 29a883e..c1b43cf 100644 (file)
@@ -184,7 +184,8 @@ public class Vala.CCodeDynamicMethodBinding : CCodeMethodBinding {
                }
 
                foreach (FormalParameter param in method.get_parameters ()) {
-                       if (param.parameter_type is MethodType) {
+                       if (param.parameter_type is MethodType
+                           || param.parameter_type is DelegateType) {
                                // callback parameter
                                break;
                        }