1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-19 03:39:08 +00:00

Also guard against accessing plRegistryKeyList currently being deleted

Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>

(ported from H-uru/Plasma@725eeaa288)
This commit is contained in:
2023-06-25 16:49:58 +02:00
parent af38137822
commit 5d5ba00f7d
2 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ plRegistryKeyList::~plRegistryKeyList()
{
plKeyImp* keyImp = fStaticKeys[i];
if (keyImp && !keyImp->ObjectIsLoaded()) {
delete keyImp;
keyImp = nullptr;
delete keyImp;
}
}
}

View File

@ -203,8 +203,8 @@ void plRegistryPageNode::UnloadKeys()
for (; it != fKeyLists.end(); it++)
{
plRegistryKeyList* keyList = it->second;
delete keyList;
it->second = nullptr;
delete keyList;
}
fKeyLists.clear();