diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-04-13 20:07:03 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-04-13 20:07:03 +0000 |
commit | d9e794a24f0a13668d747ced3f02b462c2426767 (patch) | |
tree | 4cc841120ea159cf7da926de5944eb1b1248a4af | |
parent | f71347e0f34e91407571edd6c60bb6af3825782e (diff) |
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
-rw-r--r-- | libvo/vo_macosx.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index 8a238191c7..ea4e0ebb7c 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -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); |