Minor fix: Add missing mutex lock to VmaBlockVector::IsEmpty
diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h
index 19c48ff..c06144d 100644
--- a/src/vk_mem_alloc.h
+++ b/src/vk_mem_alloc.h
@@ -6265,7 +6265,7 @@
 

     void GetPoolStats(VmaPoolStats* pStats);

 

-    bool IsEmpty() const { return m_Blocks.empty(); }

+    bool IsEmpty();

     bool IsCorruptionDetectionEnabled() const;

 

     VkResult Allocate(

@@ -11814,6 +11814,12 @@
     }

 }

 

+bool VmaBlockVector::IsEmpty()

+{

+    VmaMutexLockRead lock(m_Mutex, m_hAllocator->m_UseMutex);

+    return m_Blocks.empty();

+}

+

 bool VmaBlockVector::IsCorruptionDetectionEnabled() const

 {

     const uint32_t requiredMemFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;