mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	kernel/vm_manager: Remove redundant Reset call in destructor
This is performing more work than would otherwise be necessary during VMManager's destruction. All we actually want to occur in this scenario is for any allocated memory to be freed, which will happen automatically as the VMManager instance goes out of scope. Anything else being done is simply unnecessary work.
This commit is contained in:
		
							parent
							
								
									bb776e25a9
								
							
						
					
					
						commit
						1f2e75ecea
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -40,9 +40,7 @@ VMManager::VMManager(Memory::MemorySystem& memory) : memory(memory) { | |||
|     Reset(); | ||||
| } | ||||
| 
 | ||||
| VMManager::~VMManager() { | ||||
|     Reset(); | ||||
| } | ||||
| VMManager::~VMManager() = default; | ||||
| 
 | ||||
| void VMManager::Reset() { | ||||
|     vma_map.clear(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue