diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index e2c21a1..8f83bba 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -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)