summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-06-12 16:09:57 -0400
committerLioncash <mathew1800@gmail.com>2019-06-12 16:10:00 -0400
commit0af3b4d9f4f83ed5d785fa4a6bbceb3f14999944 (patch)
tree405275dc723156f20aac0afbce15b926bb8806a2
parent7e2bcf04b471579054424fd26746826747c0d335 (diff)
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.
-rw-r--r--src/core/hle/kernel/vm_manager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/kernel/vm_manager.cpp b/src/core/hle/kernel/vm_manager.cpp
index 6d6980aba..c929c2a52 100644
--- a/src/core/hle/kernel/vm_manager.cpp
+++ b/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();