Merge pull request #5571 from leoetlino/no-delete
HW/WiiSaveCrypted: Don't use new/delete
This commit is contained in:
commit
66dbba0a5d
|
@ -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