changeset 29271:82b6fbc72099

When used with shared_buffer, autorelease in each flip_page so objects don't accumulate until exit.
author adrian
date Mon, 18 May 2009 21:00:35 +0000
parents b14a1b101656
children c95bad660986
files libvo/vo_corevideo.m
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_corevideo.m	Sun May 17 19:51:56 2009 +0000
+++ b/libvo/vo_corevideo.m	Mon May 18 21:00:35 2009 +0000
@@ -240,9 +240,11 @@
 
 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) {