[String] Make VA leak-safe

This commit is contained in:
momo5502
2017-06-02 15:36:20 +02:00
parent 8785dfe316
commit d8c3e7fcee
14 changed files with 113 additions and 68 deletions

View File

@ -388,7 +388,7 @@ namespace Game
XAssetHeader ReallocateAssetPool(XAssetType type, unsigned int newSize)
{
int elSize = DB_GetXAssetSizeHandlers[type]();
XAssetHeader poolEntry = { Components::Loader::GetAlloctor()->allocate(newSize * elSize) };
XAssetHeader poolEntry = { Utils::Memory::GetAllocator()->allocate(newSize * elSize) };
DB_XAssetPool[type] = poolEntry;
g_poolSize[type] = newSize;
return poolEntry;