Skip to content

Commit 790667b

Browse files
committed
fix silly mistake in DbgCli_Topic destructor
1 parent f7daa19 commit 790667b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

DbgCliTopic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ DbgCli_Topic::~DbgCli_Topic()
2626
while (0 != next)
2727
{
2828
DbgCli_Node* toBeDeleted = next;
29-
delete next;
30-
3129
next = next->getNextSibling();
30+
delete toBeDeleted;
31+
toBeDeleted = 0;
3232
}
3333
}
3434

0 commit comments

Comments
 (0)