diff --git a/ChangeLog b/ChangeLog index 8be371c8b3..bb1fc37ad3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-05 Rodrigo Moya + + * gtk/gtkbindings.c (binding_signal_new): allocate correct amount for + signal and arguments. + 2006-01-05 Matthias Clasen * gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 8be371c8b3..bb1fc37ad3 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2006-01-05 Rodrigo Moya + + * gtk/gtkbindings.c (binding_signal_new): allocate correct amount for + signal and arguments. + 2006-01-05 Matthias Clasen * gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c index de196f9a50..7458935572 100644 --- a/gtk/gtkbindings.c +++ b/gtk/gtkbindings.c @@ -64,8 +64,8 @@ binding_signal_new (const gchar *signal_name, guint n_args) { GtkBindingSignal *signal; - - signal = (GtkBindingSignal *) g_slice_alloc0 (sizeof (GtkBindingSignal) + n_args * sizeof (GtkBindingArg)); + + signal = (GtkBindingSignal *) g_slice_alloc0 (sizeof (GtkBindingSignal) + n_args * sizeof (GtkBindingArg) - sizeof (GtkBindingArg)); signal->next = NULL; signal->signal_name = (gchar *)g_intern_string (signal_name); signal->n_args = n_args;