1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-08 23:26:35 +01:00

replace prompt's PromptBuf struct with a ChatContext for compatibility

This commit is contained in:
Jfreegman
2014-03-24 07:37:52 -04:00
parent e5b6e0ad9f
commit a40b6b1b1b
5 changed files with 126 additions and 142 deletions

View File

@@ -405,11 +405,13 @@ void exit_toxic(Tox *m)
store_data(m, DATA_FILE);
close_all_file_senders();
kill_all_windows();
log_disable(prompt->promptbuf->log);
log_disable(prompt->chatwin->log);
line_info_cleanup(prompt->chatwin->hst);
free(DATA_FILE);
free(prompt->stb);
free(prompt->promptbuf->log);
free(prompt->promptbuf);
free(prompt->chatwin->log);
free(prompt->chatwin->hst);
free(prompt->chatwin);
tox_kill(m);
#ifdef _SUPPORT_AUDIO
terminate_audio();