gobject/gclosure.c: Made up for missed pointer deref
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 6 Oct 2011 07:24:08 +0000 (15:24 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 6 Oct 2011 07:24:08 +0000 (15:24 +0800)
The value parameter is a gpointer * (void **), but ffi_arg itself is not a
pointer type, so make up for dereference here.

gobject/gclosure.c

index 6893484..e904ca4 100644 (file)
@@ -1032,7 +1032,7 @@ value_to_ffi_type (const GValue *gvalue,
 static void
 value_from_ffi_type (GValue *gvalue, gpointer *value)
 {
-  ffi_arg *int_val = value;
+  ffi_arg *int_val = *value;
 
   switch (g_type_fundamental (G_VALUE_TYPE (gvalue)))
     {