diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 22bf8571bf0..2b5db62c2d6 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -1079,6 +1079,7 @@ void ResourceLoader::initialize() { } void ResourceLoader::finalize() { + clear_thread_load_tasks(); memdelete(thread_load_mutex); memdelete(thread_load_semaphore); }