mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 16:16:05 +00:00
Merge pull request #3535 from RisingFog/cya_savestate_memleak
Properly clear JIT cache on save states
This commit is contained in:
commit
e455ca4d58
6 changed files with 20 additions and 2 deletions
|
@ -607,7 +607,11 @@ void Wiimote::DoState(PointerWrap& p)
|
|||
{
|
||||
//clear
|
||||
while (!m_read_requests.empty())
|
||||
{
|
||||
delete[] m_read_requests.front().data;
|
||||
m_read_requests.pop();
|
||||
}
|
||||
|
||||
|
||||
p.Do(size);
|
||||
while (size--)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue