From 6a2ef5cc6cc63845773b2fd72e19d92fd9d818db Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Sat, 7 Jun 2014 17:59:17 -0400 Subject: [PATCH] terminate audio before core on exit --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 5a22ff3..57d7f75 100644 --- a/src/main.c +++ b/src/main.c @@ -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); }