1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-16 11:55:42 +00:00

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

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)