summaryrefslogtreecommitdiffstats
path: root/src/common/memory_util.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-09-12 05:16:34 +0200
committerLioncash <mathew1800@gmail.com>2015-09-12 05:16:34 +0200
commit13683a6a1126f518f5325369ef5ea23ed4e487bc (patch)
treec8e5abda9387898fa9792ce2d53b078f383b60f9 /src/common/memory_util.cpp
parentmemory_util: Remove commented out printf statements (diff)
downloadyuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.tar
yuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.tar.gz
yuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.tar.bz2
yuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.tar.lz
yuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.tar.xz
yuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.tar.zst
yuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.zip
Diffstat (limited to 'src/common/memory_util.cpp')
-rw-r--r--src/common/memory_util.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp
index fc6696a36..07c7f79c8 100644
--- a/src/common/memory_util.cpp
+++ b/src/common/memory_util.cpp
@@ -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