DUNE/Tasks: Corrected the memory clean-up.