mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
fixed small memory leaks of the windows version
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@549 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -102,7 +102,7 @@ void* AllocateMemoryPages(int size)
|
|||||||
void FreeMemoryPages(void* ptr, int size)
|
void FreeMemoryPages(void* ptr, int size)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
VirtualFree(ptr, size, MEM_RELEASE);
|
VirtualFree(ptr, 0, MEM_RELEASE);
|
||||||
#else
|
#else
|
||||||
munmap(ptr, size);
|
munmap(ptr, size);
|
||||||
#endif
|
#endif
|
||||||
|
@ -46,7 +46,7 @@ CriticalSection::CriticalSection(int spincount)
|
|||||||
|
|
||||||
CriticalSection::~CriticalSection()
|
CriticalSection::~CriticalSection()
|
||||||
{
|
{
|
||||||
// No need to do anything
|
DeleteCriticalSection(§ion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user