new task file format don't work ifwaypoint don't come from cup waypoint file
fix memory leak in SaveTimeGate()