mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	memory_util: Remove unnecessary assignment in FreeMemoryPages
This commit is contained in:
		
							parent
							
								
									3972ac40ef
								
							
						
					
					
						commit
						13683a6a11
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		|  | @ -121,11 +121,8 @@ void FreeMemoryPages(void* ptr, size_t size) | ||||||
|     if (ptr) |     if (ptr) | ||||||
|     { |     { | ||||||
| #ifdef _WIN32 | #ifdef _WIN32 | ||||||
| 
 |  | ||||||
|         if (!VirtualFree(ptr, 0, MEM_RELEASE)) |         if (!VirtualFree(ptr, 0, MEM_RELEASE)) | ||||||
|             LOG_ERROR(Common_Memory, "FreeMemoryPages failed!\n%s", GetLastErrorMsg()); |             LOG_ERROR(Common_Memory, "FreeMemoryPages failed!\n%s", GetLastErrorMsg()); | ||||||
|         ptr = nullptr; // Is this our responsibility?
 |  | ||||||
| 
 |  | ||||||
| #else | #else | ||||||
|         munmap(ptr, size); |         munmap(ptr, size); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue