summaryrefslogtreecommitdiff
path: root/src/common/memory_util.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2015-09-11 23:16:34 -0400
committerGravatar Lioncash2015-09-11 23:16:34 -0400
commit13683a6a1126f518f5325369ef5ea23ed4e487bc (patch)
treec8e5abda9387898fa9792ce2d53b078f383b60f9 /src/common/memory_util.cpp
parentmemory_util: Remove commented out printf statements (diff)
downloadyuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.tar.gz
yuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.tar.xz
yuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.zip
memory_util: Remove unnecessary assignment in FreeMemoryPages
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)
121 if (ptr) 121 if (ptr)
122 { 122 {
123#ifdef _WIN32 123#ifdef _WIN32
124
125 if (!VirtualFree(ptr, 0, MEM_RELEASE)) 124 if (!VirtualFree(ptr, 0, MEM_RELEASE))
126 LOG_ERROR(Common_Memory, "FreeMemoryPages failed!\n%s", GetLastErrorMsg()); 125 LOG_ERROR(Common_Memory, "FreeMemoryPages failed!\n%s", GetLastErrorMsg());
127 ptr = nullptr; // Is this our responsibility?
128
129#else 126#else
130 munmap(ptr, size); 127 munmap(ptr, size);
131#endif 128#endif