summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2013-01-09 14:37:57 -0800
committerRichardHitt <rbh00@netcom.com>2013-01-09 14:37:57 -0800
commit6beef589e32d874e5d961e7e6f7b2a68c56538bd (patch)
treec27f129c1011d63570295117ea6cabd5e25e65f8 /src/fe-gtk
parent285ddd0b60974bebbee6ea6168bf8d53262f6145 (diff)
Make source cleah with cppcheck, except for mpc and sasl
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/fkeys.c1
-rw-r--r--src/fe-gtk/maingui.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-gtk/fkeys.c b/src/fe-gtk/fkeys.c
index 99d244ea..3a937e1a 100644
--- a/src/fe-gtk/fkeys.c
+++ b/src/fe-gtk/fkeys.c
@@ -1153,6 +1153,7 @@ key_load_kbs (char *filename)
 						 get_xdir ());
 	fe_message (ibuf, FE_MSG_ERROR);
 	free (ibuf);
+	free (kb);
 	return 5;
 }
 
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index fee8f320..2dfb7b8d 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -1646,7 +1646,8 @@ mg_create_tabmenu (session *sess, GdkEventButton *event, chan *ch)
 								mg_destroy_tab_cb, ch);
 	if (sess && tabmenu_list)
 		menu_create (menu, tabmenu_list, sess->channel, FALSE);
-	menu_add_plugin_items (menu, "\x4$TAB", sess->channel);
+	if (sess)
+		menu_add_plugin_items (menu, "\x4$TAB", sess->channel);
 
 	if (event->window)
 		gtk_menu_set_screen (GTK_MENU (menu), gdk_drawable_get_screen (event->window));