Mercurial > pidgin
changeset 30979:0d71d4695520
I prefer this syntax. Plus, it's slightly faster... right?
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 29 Nov 2010 06:03:44 +0000 |
parents | 2a9327053398 |
children | 18d56b13fe8b |
files | libpurple/upnp.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/upnp.c Mon Nov 29 01:12:51 2010 +0000 +++ b/libpurple/upnp.c Mon Nov 29 06:03:44 2010 +0000 @@ -162,9 +162,9 @@ while(discovery_callbacks) { gpointer data; PurpleUPnPCallback cb = discovery_callbacks->data; - discovery_callbacks = g_slist_remove(discovery_callbacks, cb); + discovery_callbacks = g_slist_delete_link(discovery_callbacks, discovery_callbacks); data = discovery_callbacks->data; - discovery_callbacks = g_slist_remove(discovery_callbacks, data); + discovery_callbacks = g_slist_delete_link(discovery_callbacks, discovery_callbacks); cb(success, data); } }