mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Fix double free when saving.
This commit is contained in:
1 parent
9f8f023ff1
commit
2278bee910
1 file changed
+1
-1
@@ -1086,7 +1086,7 @@ void SavedataParam::Clear()
|
||||
{
|
||||
for (int i = 0; i < saveNameListDataCount; i++)
|
||||
{
|
||||
if (saveDataList[i].texture != NULL)
|
||||
if (saveDataList[i].texture != NULL && (!noSaveIcon || saveDataList[i].texture != noSaveIcon->texture))
|
||||
delete saveDataList[i].texture;
|
||||
saveDataList[i].texture = NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user