# HG changeset patch # User Eric Warmenhoven # Date 972122176 0 # Node ID c3579d03a0c1ca76ccf0b665a772dd6dbd397196 # Parent bc4f6a535bd9280e1bbb0ef8a236bee13382bcef [gaim-migrate @ 1025] damn i'm smooth. no more 100% cpu usage! yay! :) committer: Tailor Script diff -r bc4f6a535bd9 -r c3579d03a0c1 src/oscar.c --- a/src/oscar.c Fri Oct 20 23:47:35 2000 +0000 +++ b/src/oscar.c Sat Oct 21 09:56:16 2000 +0000 @@ -314,7 +314,17 @@ void oscar_close(struct gaim_connection *gc) { struct oscar_data *odata = (struct oscar_data *)gc->proto_data; + GSList *c = odata->oscar_chats; + struct chat_connection *n; if (gc->protocol != PROTO_OSCAR) return; + + while (c) { + n = (struct chat_connection *)c->data; + gdk_input_remove(n->inpa); + g_free(n->name); + g_free(n); + c = c->next; + } if (gc->inpa > 0) gdk_input_remove(gc->inpa); if (odata->cnpa > 0) diff -r bc4f6a535bd9 -r c3579d03a0c1 src/server.c --- a/src/server.c Fri Oct 20 23:47:35 2000 +0000 +++ b/src/server.c Sat Oct 21 09:56:16 2000 +0000 @@ -438,6 +438,10 @@ void serv_chat_leave(struct gaim_connection *g, int id) { + /* i think this is the only one this should be necessary for since this is the + * only thing that could possibly get called after the connection is closed */ + if (!g_slist_find(connections, g)) return; + if (g->prpl && g->prpl->chat_leave) (*g->prpl->chat_leave)(g, id); }