mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 15:43:45 +00:00
Update assetManager.cpp
purgeAssets correctly on tear down of the asset manager
This commit is contained in:
parent
e2c4f88faf
commit
8926d1c32b
1 changed files with 2 additions and 0 deletions
|
|
@ -119,6 +119,8 @@ void AssetManager::onRemove()
|
|||
mAssetTagsManifest->deleteObject();
|
||||
}
|
||||
|
||||
purgeAssets();
|
||||
|
||||
for (auto itr = mDeclaredAssets.begin(); itr != mDeclaredAssets.end(); ++itr)
|
||||
{
|
||||
delete itr->value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue