Added deleter-functions in resource-manager.