# HG changeset patch # User Eric Warmenhoven # Date 978648072 0 # Node ID 8331d967288efe66c68645a2e1c214529a7b7175 # Parent ed1f47853bd40741a319073af177e6a6882a2d57 [gaim-migrate @ 1384] stupid, stupid committer: Tailor Script diff -r ed1f47853bd4 -r 8331d967288e plugins/icq/gaim_icq.c --- a/plugins/icq/gaim_icq.c Thu Jan 04 22:32:54 2001 +0000 +++ b/plugins/icq/gaim_icq.c Thu Jan 04 22:41:12 2001 +0000 @@ -85,7 +85,6 @@ if (icq_Connect(link, "icq.mirabilis.com", 4000) < 1) { hide_login_progress(gc, "Unable to connect"); - g_free(id); signoff(gc); return; } @@ -253,7 +252,6 @@ if (icq_Connect(link, "icq.mirabilis.com", 4000) < 1) { hide_login_progress(gc, "Unable to connect"); - g_free(id); signoff(gc); return; } @@ -272,8 +270,10 @@ static void icq_close(struct gaim_connection *gc) { struct icq_data *id = (struct icq_data *)gc->proto_data; - gtk_timeout_remove(id->tcp_timer); - gdk_input_remove(gc->inpa); + if (id->tcp_timer > 0) + gtk_timeout_remove(id->tcp_timer); + if (gc->inpa > 0) + gdk_input_remove(gc->inpa); icq_Logout(id->link); icq_Disconnect(id->link); icq_ICQLINKDelete(id->link);