gatserver: Don't free twice after user disconnect

It's possible to free gatserver in user disconnect function. So we
should not free it again.
This commit is contained in:
Zhenhua Zhang 2010-07-05 10:59:12 +08:00 committed by Denis Kenzior
parent 4ec07e9443
commit 2d219d37f9
1 changed files with 0 additions and 3 deletions

View File

@ -1019,9 +1019,6 @@ static void io_disconnect(gpointer user_data)
if (server->user_disconnect)
server->user_disconnect(server->user_disconnect_data);
if (server->destroyed)
g_free(server);
}
static void server_wakeup_writer(GAtServer *server)