Fix a resource leak in ControlMapping.cpp