소스 검색

memory_util: Remove unnecessary assignment in FreeMemoryPages

Lioncash 11 년 전
부모
커밋
13683a6a11
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      src/common/memory_util.cpp

+ 0 - 3
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