Fixed memory leak in updated LinearAllocator
This commit is contained in:
Родитель
4e524d1783
Коммит
378819c46e
|
@ -161,7 +161,8 @@ void LinearAllocator::FenceCommittedPages(_In_ ID3D12CommandQueue* commandQueue)
|
|||
// Disconnect from the list
|
||||
page->pPrevPage = nullptr;
|
||||
|
||||
if (page->RefCount() == 0)
|
||||
// This implies the allocator is the only remaining reference to the page, and therefore the memory is ready for re-use.
|
||||
if (page->RefCount() == 1)
|
||||
{
|
||||
// Signal the fence
|
||||
numReady++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче