diff --git a/Sources/Plasma/PubUtilLib/plResMgr/plRegistryKeyList.cpp b/Sources/Plasma/PubUtilLib/plResMgr/plRegistryKeyList.cpp index cc6d35a0..6f292d59 100644 --- a/Sources/Plasma/PubUtilLib/plResMgr/plRegistryKeyList.cpp +++ b/Sources/Plasma/PubUtilLib/plResMgr/plRegistryKeyList.cpp @@ -60,8 +60,8 @@ plRegistryKeyList::~plRegistryKeyList() { plKeyImp* keyImp = fStaticKeys[i]; if (keyImp && !keyImp->ObjectIsLoaded()) { - delete keyImp; keyImp = nullptr; + delete keyImp; } } } diff --git a/Sources/Plasma/PubUtilLib/plResMgr/plRegistryNode.cpp b/Sources/Plasma/PubUtilLib/plResMgr/plRegistryNode.cpp index 847645c5..c0eacdcb 100644 --- a/Sources/Plasma/PubUtilLib/plResMgr/plRegistryNode.cpp +++ b/Sources/Plasma/PubUtilLib/plResMgr/plRegistryNode.cpp @@ -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();