From 95aae11164b37b1bd1c5a23ce21504c1bb61eb4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 8 Apr 2018 15:25:21 +0200 Subject: [PATCH] IOS: Do not manually close devices in destructor This used to be necessary for properly cleaning up the FS state because the old FS implementation used static state and only performed cleanup in the close function, not in the destructor. Now that the static state is gone, we do not need to close devices manually anymore. --- Source/Core/Core/IOS/IOS.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Source/Core/Core/IOS/IOS.cpp b/Source/Core/Core/IOS/IOS.cpp index b57a724311..8b2a9310f1 100644 --- a/Source/Core/Core/IOS/IOS.cpp +++ b/Source/Core/Core/IOS/IOS.cpp @@ -188,14 +188,6 @@ Kernel::Kernel() Kernel::~Kernel() { - // Close all devices that were opened - for (auto& device : m_fdmap) - { - if (!device) - continue; - device->Close(0); - } - { std::lock_guard lock(m_device_map_mutex); m_device_map.clear();