HW/WiiSaveCrypted: Don't use new/delete
This commit is contained in:
parent
3a83ebcc35
commit
7b490d7cb0
|
@ -88,10 +88,9 @@ void CWiiSaveCrypted::ExportAllSaves()
|
||||||
u32 success = 0;
|
u32 success = 0;
|
||||||
for (const u64& title : titles)
|
for (const u64& title : titles)
|
||||||
{
|
{
|
||||||
CWiiSaveCrypted* export_save = new CWiiSaveCrypted("", title);
|
CWiiSaveCrypted export_save{"", title};
|
||||||
if (export_save->m_valid)
|
if (export_save.m_valid)
|
||||||
success++;
|
success++;
|
||||||
delete export_save;
|
|
||||||
}
|
}
|
||||||
SuccessAlertT("Successfully exported %u saves to %s", success,
|
SuccessAlertT("Successfully exported %u saves to %s", success,
|
||||||
(File::GetUserPath(D_USER_IDX) + "private/wii/title/").c_str());
|
(File::GetUserPath(D_USER_IDX) + "private/wii/title/").c_str());
|
||||||
|
|
Loading…
Reference in New Issue