mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
fix possible dangling shared_ptr ptr in ios
This commit is contained in:
parent
3ee4c53d65
commit
ccbc4c2d99
1 changed files with 2 additions and 1 deletions
|
@ -824,7 +824,8 @@ void Init()
|
||||||
if (!s_ios)
|
if (!s_ios)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto device = static_cast<Device::SDIOSlot0*>(s_ios->GetDeviceByName("/dev/sdio/slot0").get());
|
auto sdio_slot0 = s_ios->GetDeviceByName("/dev/sdio/slot0");
|
||||||
|
auto device = static_cast<Device::SDIOSlot0*>(sdio_slot0.get());
|
||||||
if (device)
|
if (device)
|
||||||
device->EventNotify();
|
device->EventNotify();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue