Merge pull request #5571 from leoetlino/no-delete

HW/WiiSaveCrypted: Don't use new/delete
This commit is contained in:
Leo Lam 2017-06-07 14:42:15 +02:00 committed by GitHub
commit 66dbba0a5d
1 changed files with 2 additions and 3 deletions

View File

@ -88,10 +88,9 @@ void CWiiSaveCrypted::ExportAllSaves()
u32 success = 0;
for (const u64& title : titles)
{
CWiiSaveCrypted* export_save = new CWiiSaveCrypted("", title);
if (export_save->m_valid)
CWiiSaveCrypted export_save{"", title};
if (export_save.m_valid)
success++;
delete export_save;
}
SuccessAlertT("Successfully exported %u saves to %s", success,
(File::GetUserPath(D_USER_IDX) + "private/wii/title/").c_str());