Fix memory leak of image_data.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25149 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2007-11-23 13:46:38 +00:00
parent df036d0bf5
commit 9ba75c2ccf
1 changed files with 5 additions and 0 deletions

View File

@ -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)