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

CVOpenGLESTextureCacheRef leak when I'm using GPUImageMovieWriter #2500

Closed
without2002 opened this issue Aug 18, 2017 · 2 comments
Closed

CVOpenGLESTextureCacheRef leak when I'm using GPUImageMovieWriter #2500

without2002 opened this issue Aug 18, 2017 · 2 comments

Comments

@without2002
Copy link

Hi, Brad, GPUImage is a wonderful framework in github.
I profile my app by the leak template of instrument. Then I found some leak from CoreVideo. I found you don't release the CVOpenGLESTextureCacheRef in the dealloc method of GPUImageContext. I release the object, then CVOpenGLESTextureCacheRef will not be leaked.
I don't know it is a bug or not?

@artemtkachenko
Copy link

Same issue happened with me;
put this code:

- (void)dealloc { CFRelease(_coreVideoTextureCache); }

inside GPUImageContext.m file

and GPUImageContext is not leaked anymore;

@without2002
Copy link
Author

without2002 commented Oct 20, 2017

Thank you, I have fixed the leak with same code.

ZhouPeter pushed a commit to ZhouPeter/Sweet that referenced this issue Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants