Explorar o código

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.
Lioncash %!s(int64=7) %!d(string=hai) anos
pai
achega
0af3b4d9f4
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/core/hle/kernel/vm_manager.cpp

+ 1 - 3
src/core/hle/kernel/vm_manager.cpp

@@ -68,9 +68,7 @@ VMManager::VMManager(Core::System& system) : system{system} {
     Reset(FileSys::ProgramAddressSpaceType::Is39Bit);
 }
 
-VMManager::~VMManager() {
-    Reset(FileSys::ProgramAddressSpaceType::Is39Bit);
-}
+VMManager::~VMManager() = default;
 
 void VMManager::Reset(FileSys::ProgramAddressSpaceType type) {
     Clear();