Mercurial > mplayer.hg
changeset 29137:0f6fc0df2c23
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
author | gpoirier |
---|---|
date | Mon, 13 Apr 2009 20:07:03 +0000 |
parents | cfdba9b5abba |
children | 8aeebf532e48 |
files | libvo/vo_macosx.m |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_macosx.m Mon Apr 13 08:55:20 2009 +0000 +++ b/libvo/vo_macosx.m Mon Apr 13 20:07:03 2009 +0000 @@ -835,6 +835,7 @@ { 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);