mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 19:29:09 +00:00
Fix previous commits not actually nulling out the key
I goofed while porting this from H'uru, where the variable is a reference. The previous code actually caused the keys to not get deleted at all.
This commit is contained in:
@ -60,7 +60,7 @@ plRegistryKeyList::~plRegistryKeyList()
|
||||
{
|
||||
plKeyImp* keyImp = fStaticKeys[i];
|
||||
if (keyImp && !keyImp->ObjectIsLoaded()) {
|
||||
keyImp = nullptr;
|
||||
fStaticKeys[i] = nullptr;
|
||||
delete keyImp;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user