Skip to content
Snippets Groups Projects
Commit f2e98140 authored by Milan Straka's avatar Milan Straka
Browse files

Do not forget to deallocate the node being removed.

parent 53b10972
No related branches found
No related tags found
No related merge requests found
......@@ -126,6 +126,7 @@ class Tree {
}
if (replacement)
replacement->parent = node->parent;
delete node;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment