mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02: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
@@ -583,25 +583,21 @@ namespace MainWindow
|
||||
|
||||
void DestroyDebugWindows() {
|
||||
DialogManager::RemoveDlg(disasmWindow);
|
||||
if (disasmWindow)
|
||||
delete disasmWindow;
|
||||
delete disasmWindow;
|
||||
disasmWindow = nullptr;
|
||||
|
||||
#if PPSSPP_API(ANY_GL)
|
||||
DialogManager::RemoveDlg(geDebuggerWindow);
|
||||
if (geDebuggerWindow)
|
||||
delete geDebuggerWindow;
|
||||
delete geDebuggerWindow;
|
||||
geDebuggerWindow = nullptr;
|
||||
#endif
|
||||
|
||||
DialogManager::RemoveDlg(memoryWindow);
|
||||
if (memoryWindow)
|
||||
delete memoryWindow;
|
||||
delete memoryWindow;
|
||||
memoryWindow = nullptr;
|
||||
|
||||
DialogManager::RemoveDlg(vfpudlg);
|
||||
if (vfpudlg)
|
||||
delete vfpudlg;
|
||||
delete vfpudlg;
|
||||
vfpudlg = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user