From faa665d3e732b36271630981dfb9ec730bbf36d2 Mon Sep 17 00:00:00 2001 From: adrian Date: Mon, 18 May 2009 21:00:35 +0000 Subject: 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 --- libvo/vo_corevideo.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_corevideo.m b/libvo/vo_corevideo.m index 7923a21acd..2785cfdc8c 100644 --- a/libvo/vo_corevideo.m +++ b/libvo/vo_corevideo.m @@ -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) { -- cgit v1.2.3