--- a/pidgin/pidginaccountactionsmenu.c Sun Apr 26 03:22:31 2020 -0500
+++ b/pidgin/pidginaccountactionsmenu.c Thu Apr 30 20:27:38 2020 -0500
@@ -126,13 +126,13 @@
if(PURPLE_PROTOCOL_IMPLEMENTS(protocol, CLIENT, get_actions)) {
- GList *actions = NULL, *l = NULL;
actions = purple_protocol_client_iface_get_actions(protocol,
- for(l = actions; l; l = l->next) {
- PurpleProtocolAction *action = (PurpleProtocolAction *)l->data;
+ while(actions != NULL) { + PurpleProtocolAction *action = (PurpleProtocolAction *)actions->data; item = gtk_separator_menu_item_new();
@@ -160,9 +160,12 @@
/* since we added an item, make sure items_added is true */
+ /* Iterate to the next item while deleting the one we just + actions = g_list_remove(actions, actions->data);
/* if we added any items, make our separator visible. */