Fix use-after-free in asset library storage destruction

Would only appear when more than 4 asset libraries were loaded, because
small buffer optimization would hide the issue.
This commit is contained in:
Julian Eisel
2022-11-02 11:50:42 +01:00
parent 638bf05a23
commit 460c9d3d92

View File

@@ -351,7 +351,7 @@ void AssetListStorage::fetch_library(const AssetLibraryReference &library_refere
void AssetListStorage::destruct()
{
global_storage().~AssetListMap();
global_storage().clear();
}
AssetList *AssetListStorage::lookup_list(const AssetLibraryReference &library_ref)