Fixed memory leak in VmaPool_T::~VmaPool_T

Fixes #378 Thanks @alecazam
This commit is contained in:
Adam Sawicki 2023-10-30 18:17:52 +01:00
parent 138ce7bda0
commit 7bd97fa410

View File

@ -13995,6 +13995,9 @@ VmaPool_T::VmaPool_T(
VmaPool_T::~VmaPool_T()
{
VMA_ASSERT(m_PrevPool == VMA_NULL && m_NextPool == VMA_NULL);
const VkAllocationCallbacks* allocs = m_BlockVector.GetAllocator()->GetAllocationCallbacks();
VmaFreeString(allocs, m_Name);
}
void VmaPool_T::SetName(const char* pName)