2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

memory_util: Remove unnecessary assignment in FreeMemoryPages

This commit is contained in:
Lioncash 2015-09-11 23:16:34 -04:00
parent 3972ac40ef
commit 13683a6a11

View file

@ -121,11 +121,8 @@ void FreeMemoryPages(void* ptr, size_t size)
if (ptr)
{
#ifdef _WIN32
if (!VirtualFree(ptr, 0, MEM_RELEASE))
LOG_ERROR(Common_Memory, "FreeMemoryPages failed!\n%s", GetLastErrorMsg());
ptr = nullptr; // Is this our responsibility?
#else
munmap(ptr, size);
#endif