[Commits] mainwindow.c 1.274.2.365 1.274.2.366
colin at claws-mail.org
colin at claws-mail.org
Sat Feb 16 12:59:56 CET 2013
Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv29844/src
Modified Files:
Tag: gtk2
mainwindow.c
Log Message:
2013-02-16 [colin] 3.9.0cvs71
* src/mainwindow.c
Fix use-after-free (introduced in cvs61)
Index: mainwindow.c
===================================================================
RCS file: /home/claws-mail/claws/src/mainwindow.c,v
retrieving revision 1.274.2.365
retrieving revision 1.274.2.366
diff -u -d -r1.274.2.365 -r1.274.2.366
--- mainwindow.c 11 Feb 2013 12:28:13 -0000 1.274.2.365
+++ mainwindow.c 16 Feb 2013 11:59:54 -0000 1.274.2.366
@@ -1204,13 +1204,13 @@
gtk_widget_show(item);
accel_path = g_strdup_printf("<ClawsColorLabels>/%d", i+1);
gtk_menu_item_set_accel_path(GTK_MENU_ITEM(item), accel_path);
- g_free(accel_path);
if (i < 9)
#if !GTK_CHECK_VERSION(2, 24, 0)
gtk_accel_map_add_entry(accel_path, GDK_1+i, GDK_CONTROL_MASK);
#else
gtk_accel_map_add_entry(accel_path, GDK_KEY_1+i, GDK_CONTROL_MASK);
#endif
+ g_free(accel_path);
g_signal_connect (gtk_ui_manager_get_accel_group(mainwin->ui_manager),
"accel-changed", G_CALLBACK (mainwin_accel_changed_cb), item);
More information about the Commits
mailing list