diff options
| author | 2015-09-11 23:16:34 -0400 | |
|---|---|---|
| committer | 2015-09-11 23:16:34 -0400 | |
| commit | 13683a6a1126f518f5325369ef5ea23ed4e487bc (patch) | |
| tree | c8e5abda9387898fa9792ce2d53b078f383b60f9 /src | |
| parent | memory_util: Remove commented out printf statements (diff) | |
| download | yuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.tar.gz yuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.tar.xz yuzu-13683a6a1126f518f5325369ef5ea23ed4e487bc.zip | |
memory_util: Remove unnecessary assignment in FreeMemoryPages
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/memory_util.cpp | 3 |
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 |