1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-27 19:53:25 +01: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
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

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);
}