[MPlayer-dev-eng] [PATCH] memory leak in vo_macosx

Alexander Strange astrange at ithinksw.com
Thu Apr 9 04:47:46 CEST 2009


vo_macosx leaks ~80 bytes with each call to flip_page, because this  
line:
	error = CVOpenGLTextureCacheCreateTextureFromImage(NULL,  
textureCache, frameBuffers[image_page], 0, &texture);

overwrites 'texture' without freeing the old one first (checked with  
'leaks'). I'm not sure when this started happening. Attached patch  
fixes it by releasing the old texture.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: macosx_leak.diff
Type: text/x-diff
Size: 519 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090408/b047bce5/attachment.diff>
-------------- next part --------------



More information about the MPlayer-dev-eng mailing list