Fixed a resource leak in ControlMapping.cpp