fix a memory leak leading to ~80 bytes being leaked at each call to flip_page.

Patch by Alexander Strange %astrange A ithinksw.com%
Original thread:
date: Thu, Apr 9, 2009 at 4:47 AM


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29177 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
gpoirier 2009-04-13 20:07:03 +00:00
parent f71347e0f3
commit d9e794a24f
1 changed files with 1 additions and 0 deletions

View File

@ -835,6 +835,7 @@ static int control(uint32_t request, void *data, ...)
{
CVReturn error = kCVReturnSuccess;
CVOpenGLTextureRelease(texture);
error = CVOpenGLTextureCacheCreateTextureFromImage(NULL, textureCache, frameBuffers[image_page], 0, &texture);
if(error != kCVReturnSuccess)
mp_msg(MSGT_VO, MSGL_ERR,"Failed to create OpenGL texture(%d)\n", error);