Added release of resource support to maps