mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-14 05:53:01 +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();
|
||||
#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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user