Leaks fixing.
Make destructors of shared_ptr successors non-virtual as is it useless.
Memory leaks in Nurbs.
Proper deallocation in DP helpers.