release the resources; erase the pair we use in the map.