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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user