BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.24k stars 4.61k forks source link

CVOpenGLESTextureCacheRef leak when I'm using GPUImageMovieWriter #2500

Closed without2002 closed 6 years ago

without2002 commented 7 years ago

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 commented 7 years ago

Same issue happened with me; put this code:

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

inside GPUImageContext.m file

and GPUImageContext is not leaked anymore;

without2002 commented 6 years ago

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