[Rawstudio-commit] r970 - trunk/src

Anders Brander anders at brander.dk
Fri Dec 29 02:26:55 CET 2006


Author: abrander
Date: 2006-12-29 02:26:55 +0100 (Fri, 29 Dec 2006)
New Revision: 970

Modified:
   trunk/src/gtk-interface.c
Log:
Allocate enough space for callback_data_array in gui_make_menubar().

Modified: trunk/src/gtk-interface.c
===================================================================
--- trunk/src/gtk-interface.c	2006-12-29 01:06:18 UTC (rev 969)
+++ trunk/src/gtk-interface.c	2006-12-29 01:26:55 UTC (rev 970)
@@ -1850,7 +1850,7 @@
 
 	accel_group = gtk_accel_group_new ();
 	item_factory = gtk_item_factory_new (GTK_TYPE_MENU_BAR, "<main>", accel_group);
-	callback_data_array = g_malloc(sizeof(struct rs_callback_data_t*)*(nmenu_items+3));
+	callback_data_array = g_malloc(sizeof(struct rs_callback_data_t*)*(nmenu_items+4));
 	callback_data_array_size = nmenu_items;
 	for (i=0; i<nmenu_items; i++) {
 		callback_data_array[i] = g_malloc(sizeof(struct rs_callback_data_t));




More information about the Rawstudio-commit mailing list