[MPlayer-cvslog] r29177 - trunk/libvo/vo_macosx.m

gpoirier subversion at mplayerhq.hu
Mon Apr 13 22:07:04 CEST 2009


Author: gpoirier
Date: Mon Apr 13 22:07:03 2009
New Revision: 29177

Log:
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

Modified:
   trunk/libvo/vo_macosx.m

Modified: trunk/libvo/vo_macosx.m
==============================================================================
--- trunk/libvo/vo_macosx.m	Mon Apr 13 10:55:20 2009	(r29176)
+++ trunk/libvo/vo_macosx.m	Mon Apr 13 22:07:03 2009	(r29177)
@@ -835,6 +835,7 @@ static int control(uint32_t request, voi
 {
 	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);


More information about the MPlayer-cvslog mailing list