Skip to content

Commit

Permalink
fixed double deletion in CDLLList
Browse files Browse the repository at this point in the history
  • Loading branch information
rusoku committed Jun 9, 2023
1 parent a9d8560 commit 0c7ec18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CDllList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0c7ec18

Please sign in to comment.