Merge pull request #3535 from RisingFog/cya_savestate_memleak

Properly clear JIT cache on save states
This commit is contained in:
Pierre Bourdon 2016-01-20 18:02:25 +01:00
commit e455ca4d58
6 changed files with 20 additions and 2 deletions

View file

@ -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--)