mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 10:58:26 -05:00
memory_util: Remove unnecessary assignment in FreeMemoryPages
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user