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(-)
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index 3fa26a0..c63f04b 100644 --- a/gatchat/gatserver.c +++ b/gatchat/gatserver.c @@ -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) -- 1.6.3.3 _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono