diff options
author | Lioncash <mathew1800@gmail.com> | 2019-06-12 16:09:57 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-06-12 16:10:00 -0400 |
commit | 0af3b4d9f4f83ed5d785fa4a6bbceb3f14999944 (patch) | |
tree | 405275dc723156f20aac0afbce15b926bb8806a2 /src | |
parent | 7e2bcf04b471579054424fd26746826747c0d335 (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.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/vm_manager.cpp | 4 |
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(); |