1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-20 11:36:36 +02:00

terminate audio before core on exit

This commit is contained in:
Jfreegman
2014-06-07 17:59:17 -04:00
parent 2a63e62aba
commit 6a2ef5cc6c

View File

@ -442,10 +442,10 @@ void exit_toxic(Tox *m)
free(prompt->chatwin->hst);
free(prompt->chatwin);
free(user_settings);
tox_kill(m);
#ifdef _SUPPORT_AUDIO
terminate_audio();
#endif /* _SUPPORT_AUDIO */
tox_kill(m);
endwin();
exit(EXIT_SUCCESS);
}