We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to Reproduce:
UIButton appears to be leaking memory for me. More specifically _titleRenderer’s retain in Button::setTitleLabel() doesn’t have a matching release.
Removing the retain from Button::setTitleLabel() fixes the leak.
Is there a reason retain is being called on _titleRenderer even though it’s being added as a child?
void Button::setTitleLabel(Label* label) { if (_titleRenderer != label) { CC_SAFE_RELEASE(_titleRenderer); _titleRenderer = label; CC_SAFE_RETAIN(_titleRenderer); addProtectedChild(_titleRenderer, TITLE_RENDERER_Z, -1); updateTitleLocation(); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to Reproduce:
UIButton appears to be leaking memory for me. More specifically _titleRenderer’s retain in Button::setTitleLabel() doesn’t have a matching release.
Removing the retain from Button::setTitleLabel() fixes the leak.
Is there a reason retain is being called on _titleRenderer even though it’s being added as a child?
The text was updated successfully, but these errors were encountered: