mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Free contact list
This commit is contained in:
parent
6bee6cb0fb
commit
30739ed157
@ -1188,6 +1188,7 @@ _who_roster(gchar **args, struct cmd_help_t help)
|
|||||||
g_slist_free(filtered);
|
g_slist_free(filtered);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list = g_slist_nth(list, 0);
|
||||||
g_slist_free(list);
|
g_slist_free(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -402,17 +402,18 @@ cons_show_sent_subs(void)
|
|||||||
GSList *contacts = roster_get_contacts();
|
GSList *contacts = roster_get_contacts();
|
||||||
PContact contact = NULL;
|
PContact contact = NULL;
|
||||||
cons_show("Awaiting subscription responses from:");
|
cons_show("Awaiting subscription responses from:");
|
||||||
while (contacts != NULL) {
|
GSList *curr = contacts;
|
||||||
contact = (PContact) contacts->data;
|
while (curr != NULL) {
|
||||||
|
contact = (PContact) curr->data;
|
||||||
if (p_contact_pending_out(contact)) {
|
if (p_contact_pending_out(contact)) {
|
||||||
cons_show(" %s", p_contact_barejid(contact));
|
cons_show(" %s", p_contact_barejid(contact));
|
||||||
}
|
}
|
||||||
contacts = g_slist_next(contacts);
|
curr = g_slist_next(curr);
|
||||||
}
|
}
|
||||||
|
g_slist_free(contacts);
|
||||||
} else {
|
} else {
|
||||||
cons_show("No pending requests sent.");
|
cons_show("No pending requests sent.");
|
||||||
}
|
}
|
||||||
|
|
||||||
cons_alert();
|
cons_alert();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user