mirror of https://github.com/mpv-player/mpv
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:
parent
a59c8e7d6a
commit
4a8b396b31
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue