Mercurial > mplayer.hg
changeset 25121:786b99c1ff94
Fix memory leak of image_data.
author | ulion |
---|---|
date | Fri, 23 Nov 2007 13:46:38 +0000 |
parents | 9b4ca4dc1294 |
children | 870e5564d0f7 |
files | libvo/vo_macosx.m |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_macosx.m Fri Nov 23 13:22:21 2007 +0000 +++ b/libvo/vo_macosx.m Fri Nov 23 13:46:38 2007 +0000 @@ -252,6 +252,11 @@ [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:nil inMode:NSDefaultRunLoopMode dequeue:YES]; [finalPool release]; } + if (!shared_buffer) + { + free(image_data); + image_data = NULL; + } } static int preinit(const char *arg)