gsdx: Fix memory leak

The memory was allocated with new so it should be freed with delete and
not _aligned_free. Fixes the destructors not being called.
This commit is contained in:
Jonathan Li 2018-11-16 02:00:42 +00:00
parent 51ceec74a3
commit 15733ed8cf
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ GSLocalMemory::~GSLocalMemory()
else else
vmfree(m_vm8, m_vmsize * 4); vmfree(m_vm8, m_vmsize * 4);
for(auto &i : m_omap) _aligned_free(i.second); for(auto &i : m_omap) delete i.second;
for(auto &i : m_pomap) _aligned_free(i.second); for(auto &i : m_pomap) _aligned_free(i.second);
for(auto &i : m_po4map) _aligned_free(i.second); for(auto &i : m_po4map) _aligned_free(i.second);