1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 22:03:02 +01:00

Make sure logger file is closed after tox_kill

This commit is contained in:
jfreegman 2020-05-18 13:58:55 -04:00
parent 4bda799a4b
commit dcf3baf60f
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -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();