mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 11:20:40 +00:00
PINK: Remove delete nullptr. PVS-Studio V575
This commit is contained in:
parent
98db6aa402
commit
754632401f
@ -181,11 +181,9 @@ void PDAMgr::close() {
|
||||
}
|
||||
|
||||
void PDAMgr::loadGlobal() {
|
||||
if (_globalPage)
|
||||
return;
|
||||
|
||||
delete _globalPage;
|
||||
_globalPage = new PDAPage("GLOBAL", getGame());
|
||||
if (_globalPage == nullptr) {
|
||||
_globalPage = new PDAPage("GLOBAL", getGame());
|
||||
}
|
||||
}
|
||||
|
||||
void PDAMgr::initPerilButtons() {
|
||||
|
Loading…
Reference in New Issue
Block a user