From 4f318659751519bffd6bdbde4418814ce26b9c69 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 12 Nov 2022 01:20:33 +0100 Subject: fix use-after-free Found-with: asan --- loader/loader-impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loader') diff --git a/loader/loader-impl.cpp b/loader/loader-impl.cpp index 55da68df..62fad6de 100644 --- a/loader/loader-impl.cpp +++ b/loader/loader-impl.cpp @@ -38,8 +38,8 @@ struct loader_impl final : loader_ Containers::Pointer tga_importer = importer_plugins.loadAndInstantiate("TgaImporter"); - std::unordered_map> tile_atlas_map; - std::unordered_map> anim_atlas_map; + std::unordered_map> tile_atlas_map; + std::unordered_map> anim_atlas_map; std::vector anim_atlases; StringView shader(StringView filename) override; -- cgit v1.2.3