mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
fix for small memory leaks
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@562 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
50e327024e
commit
f198d550bc
4 changed files with 13 additions and 4 deletions
|
@ -373,7 +373,7 @@ void OpcodeDecoder_Init()
|
|||
|
||||
void OpcodeDecoder_Shutdown()
|
||||
{
|
||||
//VirtualFree((LPVOID)buffer,CMDBUFFER_SIZE,MEM_RELEASE);
|
||||
//VirtualFree((LPVOID)buffer,0,MEM_RELEASE);
|
||||
tempvarray.Destroy();
|
||||
}
|
||||
|
||||
|
|
|
@ -68,8 +68,11 @@ void TextureCache::Shutdown()
|
|||
{
|
||||
Invalidate();
|
||||
|
||||
VirtualFree(temp, 0, MEM_RELEASE);
|
||||
temp = NULL;
|
||||
if (temp != NULL)
|
||||
{
|
||||
VirtualFree(temp, 0, MEM_RELEASE);
|
||||
temp = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void TextureCache::Cleanup()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue