mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
[Common/Core/Windows] Removed excess check pointer before delete or free()
This commit is contained in:
1 parent
94f0e7afa8
commit
3c66f149d3
26 files changed
+46
-96
No files matched your search
@@ -1494,16 +1494,15 @@ void SavedataParam::Clear()
|
||||
}
|
||||
|
||||
delete [] saveDataList;
|
||||
saveDataList = 0;
|
||||
saveDataList = NULL;
|
||||
saveDataListCount = 0;
|
||||
}
|
||||
if (noSaveIcon)
|
||||
{
|
||||
if (noSaveIcon->texture != NULL)
|
||||
delete noSaveIcon->texture;
|
||||
delete noSaveIcon->texture;
|
||||
noSaveIcon->texture = NULL;
|
||||
delete noSaveIcon;
|
||||
noSaveIcon = 0;
|
||||
noSaveIcon = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1924,8 +1923,7 @@ void SavedataParam::DoState(PointerWrap &p) {
|
||||
Do(p, saveDataListCount);
|
||||
Do(p, saveNameListDataCount);
|
||||
if (p.mode == p.MODE_READ) {
|
||||
if (saveDataList)
|
||||
delete [] saveDataList;
|
||||
delete [] saveDataList;
|
||||
if (saveDataListCount != 0) {
|
||||
saveDataList = new SaveFileInfo[saveDataListCount];
|
||||
DoArray(p, saveDataList, saveDataListCount);
|
||||
|
||||
Reference in new issue
Block a user