mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed use after free.
This commit is contained in:
parent
90f68f578c
commit
3b991212b7
|
@ -170,6 +170,7 @@ void logger_kill(logger *log)
|
||||||
void logger_kill_global(void)
|
void logger_kill_global(void)
|
||||||
{
|
{
|
||||||
logger_kill(global);
|
logger_kill(global);
|
||||||
|
global = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void logger_set_global(logger *log)
|
void logger_set_global(logger *log)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user