diff --git a/CDllList.cpp b/CDllList.cpp index 4efd4c7..999ccbf 100644 --- a/CDllList.cpp +++ b/CDllList.cpp @@ -282,8 +282,7 @@ BOOL CDllList::RemoveNode(struct DoubleLinkedList *pdll, struct dllnode *pNode) if (nullptr != pNode->pObject) { //auto pobj = pNode->pObject; //delete pobj; - delete pNode->pObject; - delete pNode->pObject; + delete pNode->pObject pNode->pObject = nullptr; }