makePlan() no longer tears down and reallocates Spline_Inf/Curve_common when the costmap size or footprint changes — the snapshot is only used to detect the change, so refresh it in place. Destructor now frees the two allocations. initialize() validates the costmap pointer before use. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>