mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
DolphinWX: Get rid of an explicit delete in OnExportSave
This commit is contained in:
@ -973,16 +973,13 @@ void CGameListCtrl::OnExportSave(wxCommandEvent& WXUNUSED (event))
|
|||||||
const GameListItem *iso = GetSelectedISO();
|
const GameListItem *iso = GetSelectedISO();
|
||||||
if (!iso)
|
if (!iso)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
u64 title;
|
u64 title;
|
||||||
DiscIO::IVolume *Iso = DiscIO::CreateVolumeFromFilename(iso->GetFileName());
|
std::unique_ptr<DiscIO::IVolume> volume(DiscIO::CreateVolumeFromFilename(iso->GetFileName()));
|
||||||
if (Iso)
|
if (volume && volume->GetTitleID((u8*)&title))
|
||||||
{
|
{
|
||||||
if (Iso->GetTitleID((u8*)&title))
|
title = Common::swap64(title);
|
||||||
{
|
CWiiSaveCrypted::ExportWiiSave(title);
|
||||||
title = Common::swap64(title);
|
|
||||||
CWiiSaveCrypted::ExportWiiSave(title);
|
|
||||||
}
|
|
||||||
delete Iso;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user