From 0c7ec185412350572c04a973a55084abf71f1a20 Mon Sep 17 00:00:00 2001 From: Gediminas Simanskis Date: Fri, 9 Jun 2023 08:18:32 +0300 Subject: [PATCH] fixed double deletion in CDLLList --- CDllList.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }