void do_final(int code) { message_server_close(); if (messageThread.joinable()) { messageThread.join(); } Sql_Free(SqlHandle); timer_final(); socket_final(); exit(code); }
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); }