pidgin/pidgin

abbd9caef452
Parents cc03b5af25ea
Children 006e1985511f
Use g_slist_delete_link instead of g_slist_remove
--- a/libpurple/protocols/jabber/buddy.c Wed Oct 16 01:06:17 2019 +0300
+++ b/libpurple/protocols/jabber/buddy.c Wed Oct 16 12:02:44 2019 +0300
@@ -898,7 +898,7 @@
l = g_slist_find_custom(jbi->ids, id, (GCompareFunc)g_strcmp0);
if(l) {
comp_id = l->data;
- jbi->ids = g_slist_remove(jbi->ids, comp_id);
+ jbi->ids = g_slist_delete_link(jbi->ids, l);
g_free(comp_id);
return;
}
--- a/libpurple/protocols/simple/sipmsg.c Wed Oct 16 01:06:17 2019 +0300
+++ b/libpurple/protocols/simple/sipmsg.c Wed Oct 16 12:02:44 2019 +0300
@@ -196,7 +196,7 @@
GSList *tmp = g_slist_find_custom(msg->headers, name, (GCompareFunc)g_ascii_strcasecmp);
if(tmp) {
struct siphdrelement *elem = tmp->data;
- msg->headers = g_slist_remove(msg->headers, elem);
+ msg->headers = g_slist_delete_link(msg->headers, tmp);
g_free(elem->name);
g_free(elem->value);
g_free(elem);