Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Make scoped_nsprotocol::release() private. #21467

Merged
merged 1 commit into from
Sep 28, 2020

Conversation

chinmaygarde
Copy link
Member

This is not used anywhere in the engine. However, this API is easy to misuse as
one might incorrectly assume that it releases the reference on the underlying
object. Callers must use reset for this purpose.

This is not used anywhere in the engine. However, this API is easy to misuse as
one might incorrectly assume that it releases the reference on the underlying
object. Callers must use `reset` for this purpose.
@chinmaygarde
Copy link
Member Author

Minor API fixup. Ran into this in an unrelated patch where I wanted to decrement a reference but instead ended up leaking the reference. The name collision is confusing and we are not using this API at all. So just hide it (it is being used in the implementation).

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM stamp from a Japanese personal seal

nit: s/release/autorelease/ in the commit message ignore that! Another victim of GitHub's diff collapsing. lgtm!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants