mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 19:29:09 +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:
@ -60,8 +60,8 @@ plRegistryKeyList::~plRegistryKeyList()
|
||||
{
|
||||
plKeyImp* keyImp = fStaticKeys[i];
|
||||
if (keyImp && !keyImp->ObjectIsLoaded()) {
|
||||
delete keyImp;
|
||||
keyImp = nullptr;
|
||||
delete keyImp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user