[General] Fix protobuf and other memory leaks

This commit is contained in:
momo5502
2017-01-22 20:12:36 +01:00
parent f81a36ae3b
commit 2de95b4a3b
13 changed files with 119 additions and 55 deletions

View File

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