diff options
| author | 2023-10-01 11:47:14 +0200 | |
|---|---|---|
| committer | 2023-10-01 11:47:14 +0200 | |
| commit | 9007d8c8d443ff032b6ef1b8c026cbdc1882f542 (patch) | |
| tree | 94af3dae4c1241a463e5e3594ce57e97f0ba1586 /src/video_core/query_cache | |
| parent | Merge pull request #11493 from merryhime/evt (diff) | |
| download | yuzu-9007d8c8d443ff032b6ef1b8c026cbdc1882f542.tar.gz yuzu-9007d8c8d443ff032b6ef1b8c026cbdc1882f542.tar.xz yuzu-9007d8c8d443ff032b6ef1b8c026cbdc1882f542.zip | |
Query Cache: Fix memory leak.
Diffstat (limited to 'src/video_core/query_cache')
| -rw-r--r-- | src/video_core/query_cache/bank_base.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/query_cache/bank_base.h b/src/video_core/query_cache/bank_base.h index 420927091..44769ea97 100644 --- a/src/video_core/query_cache/bank_base.h +++ b/src/video_core/query_cache/bank_base.h | |||
| @@ -82,6 +82,7 @@ public: | |||
| 82 | size_t new_index = bank_indices.front(); | 82 | size_t new_index = bank_indices.front(); |
| 83 | bank_indices.pop_front(); | 83 | bank_indices.pop_front(); |
| 84 | bank_pool[new_index].Reset(); | 84 | bank_pool[new_index].Reset(); |
| 85 | bank_indices.push_back(new_index); | ||
| 85 | return new_index; | 86 | return new_index; |
| 86 | } | 87 | } |
| 87 | size_t new_index = bank_pool.size(); | 88 | size_t new_index = bank_pool.size(); |