mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
Merge pull request #6614 from leoetlino/auto-close
IOS: Do not manually close devices in destructor
This commit is contained in:
commit
983d500d14
1 changed files with 0 additions and 8 deletions
|
@ -188,14 +188,6 @@ Kernel::Kernel()
|
||||||
|
|
||||||
Kernel::~Kernel()
|
Kernel::~Kernel()
|
||||||
{
|
{
|
||||||
// Close all devices that were opened
|
|
||||||
for (auto& device : m_fdmap)
|
|
||||||
{
|
|
||||||
if (!device)
|
|
||||||
continue;
|
|
||||||
device->Close(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(m_device_map_mutex);
|
std::lock_guard<std::mutex> lock(m_device_map_mutex);
|
||||||
m_device_map.clear();
|
m_device_map.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue