Mercurial > pidgin.yaz
comparison src/oscar.c @ 1667:b5635d882116
[gaim-migrate @ 1677]
fixes.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 30 Mar 2001 22:12:56 +0000 |
parents | 8c1861a8daa1 |
children | f42ce672c560 |
comparison
equal
deleted
inserted
replaced
1666:8b0c165a33f4 | 1667:b5635d882116 |
---|---|
453 struct chat_connection *n; | 453 struct chat_connection *n; |
454 if (gc->protocol != PROTO_OSCAR) return; | 454 if (gc->protocol != PROTO_OSCAR) return; |
455 | 455 |
456 while (c) { | 456 while (c) { |
457 n = (struct chat_connection *)c->data; | 457 n = (struct chat_connection *)c->data; |
458 gdk_input_remove(n->inpa); | 458 if (n->inpa > 0) |
459 gdk_input_remove(n->inpa); | |
459 g_free(n->name); | 460 g_free(n->name); |
460 c = g_slist_remove(c, n); | 461 c = g_slist_remove(c, n); |
461 g_free(n); | 462 g_free(n); |
462 } | 463 } |
463 if (gc->inpa > 0) | 464 if (gc->inpa > 0) |
2028 | 2029 |
2029 c = find_oscar_chat(g, b->id); | 2030 c = find_oscar_chat(g, b->id); |
2030 if (c != NULL) { | 2031 if (c != NULL) { |
2031 if (odata) | 2032 if (odata) |
2032 odata->oscar_chats = g_slist_remove(odata->oscar_chats, c); | 2033 odata->oscar_chats = g_slist_remove(odata->oscar_chats, c); |
2033 gdk_input_remove(c->inpa); | 2034 if (c->inpa > 0) |
2035 gdk_input_remove(c->inpa); | |
2034 if (g && odata->sess) | 2036 if (g && odata->sess) |
2035 aim_conn_kill(odata->sess, &c->conn); | 2037 aim_conn_kill(odata->sess, &c->conn); |
2036 g_free(c->name); | 2038 g_free(c->name); |
2037 g_free(c); | 2039 g_free(c); |
2038 } | 2040 } |