mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
51ceec74a3
commit
15733ed8cf
|
@ -494,7 +494,7 @@ GSLocalMemory::~GSLocalMemory()
|
|||
else
|
||||
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_po4map) _aligned_free(i.second);
|
||||
|
||||
|
|
Loading…
Reference in New Issue