allocate correct amount for signal and arguments.

2006-01-05  Rodrigo Moya <rodrigo@novell.com>

	* gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
	signal and arguments.
This commit is contained in:
Rodrigo Moya 2006-01-05 11:26:59 +00:00 committed by Rodrigo Moya
parent 8de623acd4
commit 2ffc74793b
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-01-05 Rodrigo Moya <rodrigo@novell.com>
* gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
signal and arguments.
2006-01-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from

View File

@ -1,3 +1,8 @@
2006-01-05 Rodrigo Moya <rodrigo@novell.com>
* gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
signal and arguments.
2006-01-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from

View File

@ -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;