diff src/oscar.c @ 1016:661ac77ccd1b

[gaim-migrate @ 1026] it helps doing things in a more proper way committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 21 Oct 2000 10:21:24 +0000
parents c3579d03a0c1
children e1e36f95af9a
line wrap: on
line diff
--- a/src/oscar.c	Sat Oct 21 09:56:16 2000 +0000
+++ b/src/oscar.c	Sat Oct 21 10:21:24 2000 +0000
@@ -322,8 +322,8 @@
 		n = (struct chat_connection *)c->data;
 		gdk_input_remove(n->inpa);
 		g_free(n->name);
+		c = g_slist_remove(c, n);
 		g_free(n);
-		c = c->next;
 	}
 	if (gc->inpa > 0)
 		gdk_input_remove(gc->inpa);