1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 06:36:34 +01:00

fix window cleanup bugs & give prompt its own cleanup func

This commit is contained in:
Jfreegman
2014-07-08 19:24:44 -04:00
parent 5b9fd70f30
commit 9fa5a3fdb6
8 changed files with 52 additions and 37 deletions

View File

@@ -96,15 +96,10 @@ void exit_toxic_success(Tox *m)
store_data(m, DATA_FILE);
close_all_file_senders(m);
kill_all_windows();
log_disable(prompt->chatwin->log);
line_info_cleanup(prompt->chatwin->hst);
free(DATA_FILE);
free(prompt->stb);
free(prompt->help);
free(prompt->chatwin->log);
free(prompt->chatwin->hst);
free(prompt->chatwin);
free(user_settings);
#ifdef _SUPPORT_AUDIO
terminate_audio();
#endif /* _SUPPORT_AUDIO */