HW/WiiSaveCrypted: Don't use new/delete

This commit is contained in:
Léo Lam 2017-06-07 12:49:24 +02:00
parent 3a83ebcc35
commit 7b490d7cb0
1 changed files with 2 additions and 3 deletions

View File

@ -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());