gaim/gaim

Parents 8edf0358144f
Children d9c4c1c33abb
gaim_roomlist_unref() was being called on the struct yahoo_roomlist. Also, prevent the roomlist refcount from being screwed up when the roomlist fetch fails
--- a/src/protocols/yahoo/yahoochat.c Tue Feb 22 23:42:11 2005 -0500
+++ b/src/protocols/yahoo/yahoochat.c Wed Feb 23 11:44:10 2005 -0500
@@ -1436,7 +1436,7 @@
for (; l; l = l->next) {
yahoo_roomlist_destroy(l->data);
- gaim_roomlist_unref(l->data);
+ gaim_roomlist_unref(list);
}
g_list_free(k);
}
@@ -1476,6 +1476,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;
}