changeset 29776:53dd827e6bb2

Fix a crash caused by context menus for sametime buddies. It looks like prpl/plugins can add a null menu-action for context-menus. So let's not crash on those. Fixes #11721.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 23 Apr 2010 01:24:08 +0000
parents 869dfdcea8a7
children 446f208e5765 31f20c9c7674
files finch/gntblist.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntblist.c	Thu Apr 22 17:38:56 2010 +0000
+++ b/finch/gntblist.c	Fri Apr 23 01:24:08 2010 +0000
@@ -1117,6 +1117,8 @@
 			list = g_list_delete_link(list, list))
 	{
 		PurpleMenuAction *act = (PurpleMenuAction *) list->data;
+		if (!act)
+			continue;
 		act->data = node;
 		gnt_append_menu_action(menu, act, NULL);
 		g_signal_connect_swapped(G_OBJECT(menu), "destroy",