diff src/protocols/yahoo/yahoochat.c @ 10647:7d13c04387ad

[gaim-migrate @ 12163] These got committed to oldstatus, but not to HEAD committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 02 Mar 2005 04:36:19 +0000
parents 96307e1a47c9
children ca3e0882d377
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoochat.c	Tue Mar 01 21:15:58 2005 +0000
+++ b/src/protocols/yahoo/yahoochat.c	Wed Mar 02 04:36:19 2005 +0000
@@ -1391,7 +1391,7 @@
 
 	for (; l; l = l->next) {
 		yahoo_roomlist_destroy(l->data);
-		gaim_roomlist_unref(l->data);
+		gaim_roomlist_unref(list);
 	}
 	g_list_free(k);
 }
@@ -1431,6 +1431,7 @@
 	{
 		gaim_notify_error(gaim_account_get_connection(list->account),
 		                  NULL, _("Connection problem"), _("Unable to fetch room list."));
+		gaim_roomlist_ref(list);
 		yahoo_roomlist_cleanup(list, yrl);
 		return;
 	}