Skip to content
Snippets Groups Projects
Commit 088c434d authored by Liam's avatar Liam
Browse files

kernel: remove unnecessary finalize calls

parent 9863db9d
No related branches found
No related tags found
No related merge requests found
......@@ -74,9 +74,6 @@ void KSharedMemory::Finalize() {
// Release the memory reservation.
m_resource_limit->Release(LimitableResource::PhysicalMemoryMax, m_size);
m_resource_limit->Close();
// Perform inherited finalization.
KAutoObjectWithSlabHeapAndContainer<KSharedMemory, KAutoObjectWithList>::Finalize();
}
Result KSharedMemory::Map(KProcess& target_process, VAddr address, std::size_t map_size,
......
......@@ -30,10 +30,7 @@ Result KTransferMemory::Initialize(VAddr address, std::size_t size,
R_SUCCEED();
}
void KTransferMemory::Finalize() {
// Perform inherited finalization.
KAutoObjectWithSlabHeapAndContainer<KTransferMemory, KAutoObjectWithList>::Finalize();
}
void KTransferMemory::Finalize() {}
void KTransferMemory::PostDestroy(uintptr_t arg) {
KProcess* owner = reinterpret_cast<KProcess*>(arg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment