changeset 17629:ce04ca030a1b

Fixed some memory leaks.
author Andreas Monitzer <pidgin@monitzer.com>
date Wed, 11 Jul 2007 00:32:39 +0000
parents d53aa2308727
children 7cc4c6c73a06
files libpurple/protocols/jabber/caps.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c	Wed Jul 11 00:17:11 2007 +0000
+++ b/libpurple/protocols/jabber/caps.c	Wed Jul 11 00:32:39 2007 +0000
@@ -309,13 +309,13 @@
 		g_free(id->name);
 		g_free(id);
 		
-		clientinfo->identities = g_list_remove_link(clientinfo->identities,clientinfo->identities);
+		clientinfo->identities = g_list_delete_link(clientinfo->identities,clientinfo->identities);
 	}
 	while(clientinfo->features) {
 		char *feat = clientinfo->features->data;
 		g_free(feat);
 		
-		clientinfo->features = g_list_remove_link(clientinfo->features,clientinfo->features);
+		clientinfo->features = g_list_delete_link(clientinfo->features,clientinfo->features);
 	}
 	
 	g_free(clientinfo);
@@ -340,7 +340,7 @@
 		g_free(userdata->ver);
 		while(userdata->ext) {
 			g_free(userdata->ext->data);
-			userdata->ext = g_list_remove_link(userdata->ext,userdata->ext);
+			userdata->ext = g_list_delete_link(userdata->ext,userdata->ext);
 		}
 		g_free(userdata);
 	}