mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-26 14:15:40 +01:00
Query Cache: Fix memory leak.
This commit is contained in:
parent
184ee2d890
commit
9007d8c8d4
@ -82,6 +82,7 @@ public:
|
|||||||
size_t new_index = bank_indices.front();
|
size_t new_index = bank_indices.front();
|
||||||
bank_indices.pop_front();
|
bank_indices.pop_front();
|
||||||
bank_pool[new_index].Reset();
|
bank_pool[new_index].Reset();
|
||||||
|
bank_indices.push_back(new_index);
|
||||||
return new_index;
|
return new_index;
|
||||||
}
|
}
|
||||||
size_t new_index = bank_pool.size();
|
size_t new_index = bank_pool.size();
|
||||||
|
@ -506,6 +506,7 @@ private:
|
|||||||
SetAccumulationValue(query->value);
|
SetAccumulationValue(query->value);
|
||||||
Free(index);
|
Free(index);
|
||||||
});
|
});
|
||||||
|
rasterizer->SyncOperation(std::move(func));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <bool is_resolve>
|
template <bool is_resolve>
|
||||||
|
Loading…
Reference in New Issue
Block a user