Exemple #1
0
void do_final(int code)
{
    message_server_close();
    if (messageThread.joinable())
    {
        messageThread.join();
    }

    Sql_Free(SqlHandle);

    timer_final();
    socket_final();

    exit(code);
}
Exemple #2
0
void do_final(int code)
{
    aFree((void*)login_config.mysql_host);
    aFree((void*)login_config.mysql_login);
    aFree((void*)login_config.mysql_password);
    aFree((void*)login_config.mysql_database);

    message_server_close();
    if (messageThread.joinable())
    {
        messageThread.join();
    }

    Sql_Free(SqlHandle);

    timer_final();
    socket_final();
    malloc_final();

    exit(code);
}