gatserver: Don't free twice after user disconnect
PATCH 1/1 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.
--- gatchat/gatserver.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
gatchat/gatserver.c +0 -3
@@ -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)
Signature · 1 line
1.6.3.3
Hi Zhenhua,
gatchat/gatserver.c static void io_disconnect(gpointer user_data) · line 1024
Quoted 10 lines
gatchat/gatserver.c +0
-3@@ -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)
Good catch. Patch has been applied, thanks.
Regards,
-Denis