mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
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:
parent
117e232624
commit
faa665d3e7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user