Fix deallocation of CurvMap.