Skip to content
New issue

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

GLProgram memory do not release. #12138

Closed
fusijie opened this issue Jun 2, 2015 · 2 comments
Closed

GLProgram memory do not release. #12138

fusijie opened this issue Jun 2, 2015 · 2 comments
Assignees
Labels

Comments

@fusijie
Copy link
Contributor

fusijie commented Jun 2, 2015

version: v3.5
issue: Create a GLProgram object and release it, the memory of it do not release.
reproduce: GLProgram is an autorelease object. Notice the memory.

for (int i=0; i<500; i++) {
            auto glProgram = cocos2d::GLProgram::createWithByteArrays(cocos2d::ccPositionTextureColor_noMVP_vert, cocos2d::ccPositionTextureColor_frag);
        }
@dabingnn
Copy link
Contributor

Memory leak does not exists. Tested on IOS by using profile tools.
However, the program would crash if there are two many glprograms create in a short while because the release of the memory is delayed.

Please close it.

@dabingnn
Copy link
Contributor

@fusijie @pandamicro @AndyQue

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

No branches or pull requests

3 participants