Fixed memory corruption at call tree cleanup

Use delete on memory allocated by new