mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 21:53:05 +01:00
Make sure logger file is closed after tox_kill
This commit is contained in:
parent
4bda799a4b
commit
dcf3baf60f
10
src/toxic.c
10
src/toxic.c
@ -191,12 +191,14 @@ void exit_toxic_success(Tox *m)
|
|||||||
terminate_python();
|
terminate_python();
|
||||||
#endif /* PYTHON */
|
#endif /* PYTHON */
|
||||||
|
|
||||||
if (arg_opts.log_fp) {
|
|
||||||
fclose(arg_opts.log_fp);
|
|
||||||
}
|
|
||||||
|
|
||||||
free_global_data();
|
free_global_data();
|
||||||
tox_kill(m);
|
tox_kill(m);
|
||||||
|
|
||||||
|
if (arg_opts.log_fp != NULL) {
|
||||||
|
fclose(arg_opts.log_fp);
|
||||||
|
arg_opts.log_fp = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
endwin();
|
endwin();
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user