diff --git a/src/core/thread.c b/src/core/thread.c index 7584f711f..69183d072 100644 --- a/src/core/thread.c +++ b/src/core/thread.c @@ -269,6 +269,9 @@ static THREAD_ENTRY _mCoreThreadRun(void* context) { } core->clearCoreCallbacks(core); + if (threadContext->logger.d.filter == &filter) { + mLogFilterDeinit(&filter); + } threadContext->logger.d.filter = NULL; return 0;