diff src/protocols/jabber/jabber.c @ 2607:e0d4a23aac89

[gaim-migrate @ 2620] int main() { while(1) fork(); } committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 25 Oct 2001 09:19:25 +0000
parents 227cc42ffa6e
children 8c75e59e4bdf
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Thu Oct 25 07:03:08 2001 +0000
+++ b/src/protocols/jabber/jabber.c	Thu Oct 25 09:19:25 2001 +0000
@@ -1733,6 +1733,14 @@
 	return m;
 }
 
+static void jabber_buddy_free(struct buddy *b)
+{
+	while (b->proto_data) {
+		g_free(((GSList *)b->proto_data)->data);
+		b->proto_data = g_slist_remove(b->proto_data, ((GSList *)b->proto_data)->data);
+	}
+}
+
 static struct prpl *my_protocol = NULL;
 
 void jabber_init(struct prpl *ret)
@@ -1773,6 +1781,7 @@
 	ret->chat_send = jabber_chat_send;
 	ret->keepalive = jabber_keepalive;
 	ret->normalize = jabber_normalize;
+	ret->buddy_free = jabber_buddy_free;
 
 	my_protocol = ret;
 }