mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 16:33:03 +01:00
Make sure logger file is closed after tox_kill
This commit is contained in:
parent
4bda799a4b
commit
dcf3baf60f
12
src/toxic.c
12
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();
|
||||||
|
|
||||||
@ -1464,4 +1466,4 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user