2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Query Cache: Fix memory leak.

This commit is contained in:
Fernando Sahmkow 2023-10-01 11:47:14 +02:00
parent 184ee2d890
commit 9007d8c8d4
2 changed files with 2 additions and 0 deletions

View file

@ -82,6 +82,7 @@ public:
size_t new_index = bank_indices.front();
bank_indices.pop_front();
bank_pool[new_index].Reset();
bank_indices.push_back(new_index);
return new_index;
}
size_t new_index = bank_pool.size();

View file

@ -506,6 +506,7 @@ private:
SetAccumulationValue(query->value);
Free(index);
});
rasterizer->SyncOperation(std::move(func));
}
template <bool is_resolve>