From 9ba75c2ccf153fc626c40de158829ef4d3cfd373 Mon Sep 17 00:00:00 2001 From: ulion Date: Fri, 23 Nov 2007 13:46:38 +0000 Subject: Fix memory leak of image_data. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25149 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_macosx.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index ebcf3eb1e3..d0cde9b414 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -252,6 +252,11 @@ static void uninit(void) [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) -- cgit v1.2.3