When used with shared_buffer, autorelease in each flip_page so objects don't accumulate until exit.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29313 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
adrian 2009-05-18 21:00:35 +00:00
parent 117e232624
commit faa665d3e7
1 changed files with 4 additions and 2 deletions

View File

@ -240,9 +240,11 @@ static void draw_osd(void)
static void flip_page(void)
{
if(shared_buffer)
if(shared_buffer) {
NSAutoreleasePool *pool = [NSAutoreleasePool new];
[mplayerosxProto render];
else {
[pool release];
} else {
[mpGLView setCurrentTexture];
[mpGLView render];
if (vo_doublebuffering) {