diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 534f3e44dee..8b3a1f66374 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -999,6 +999,9 @@ void ResourceLoader::load_translation_remaps() { void ResourceLoader::clear_translation_remaps() { translation_remaps.clear(); + while (remapped_list.first() != nullptr) { + remapped_list.remove(remapped_list.first()); + } } void ResourceLoader::load_path_remaps() {