Free memory allocated in ff_vdpau_add_data_chunk() on uninit.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29793 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cehoyos 2009-10-22 18:44:39 +00:00
parent a59c8e7d6a
commit 4a8b396b31
1 changed files with 8 additions and 0 deletions

View File

@ -1111,10 +1111,18 @@ static void DestroyVdpauObjects(void)
static void uninit(void)
{
int i;
if (!vo_config_count)
return;
visible_buf = 0;
for (i = 0; i < MAX_VIDEO_SURFACES; i++) {
// Allocated in ff_vdpau_add_data_chunk()
av_freep(&surface_render[i].bitstream_buffers);
surface_render[i].bitstream_buffers_allocated = 0;
}
/* Destroy all vdpau objects */
DestroyVdpauObjects();