1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 17:23:01 +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();
#endif /* PYTHON */
if (arg_opts.log_fp) {
fclose(arg_opts.log_fp);
}
free_global_data();
tox_kill(m);
if (arg_opts.log_fp != NULL) {
fclose(arg_opts.log_fp);
arg_opts.log_fp = NULL;
}
endwin();
curl_global_cleanup();
@ -1464,4 +1466,4 @@ int main(int argc, char **argv)
}
return 0;
}
}