# HG changeset patch # User Christian Hammond # Date 1054431729 0 # Node ID 70ae81fc802f0521ebd15276d46f6db9699cbd23 # Parent f291874c418e895aaafe2e85192bbf2d445b04d7 [gaim-migrate @ 6029] Fixed one bug.. we don't really want a disconnected connection in the list. committer: Tailor Script diff -r f291874c418e -r 70ae81fc802f src/connection.c --- a/src/connection.c Sun Jun 01 01:35:16 2003 +0000 +++ b/src/connection.c Sun Jun 01 01:42:09 2003 +0000 @@ -65,8 +65,6 @@ if (gc->away_state != NULL) g_free(gc->away_state); - connections = g_list_remove(connections, gc); - g_free(gc); } @@ -119,13 +117,11 @@ gaim_connection_set_state(gc, GAIM_DISCONNECTED); + connections = g_list_remove(connections, gc); + gaim_event_broadcast(event_signoff, gc); system_log(log_signoff, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); - /* XXX Evil UI stuff!! */ - do_away_menu(); - do_proto_menu(); - /* * XXX This is a hack! Remove this and replace it with a better event * notification system. @@ -141,6 +137,8 @@ update_privacy_connections(); + gaim_connection_destroy(gc); + /* XXX More UI stuff! */ if (connections != NULL) return;