Browse Source

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.
tickets/51/51/1
dgelessus 10 months ago
parent
commit
ea7e4b2ab5
  1. 2
      Sources/Plasma/PubUtilLib/plResMgr/plRegistryKeyList.cpp

2
Sources/Plasma/PubUtilLib/plResMgr/plRegistryKeyList.cpp

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

Loading…
Cancel
Save