diff --git a/toxcore/logger.c b/toxcore/logger.c index fa9d1760..2ef5f21a 100644 --- a/toxcore/logger.c +++ b/toxcore/logger.c @@ -170,6 +170,7 @@ void logger_kill(logger *log) void logger_kill_global(void) { logger_kill(global); + global = NULL; } void logger_set_global(logger *log)