# HG changeset patch # User cehoyos # Date 1256237079 0 # Node ID 593354e0500d14a481363b5afee6fa625c4772fc # Parent 0767ef7f6ca2071767b367029c21350a9ca075b8 Free memory allocated in ff_vdpau_add_data_chunk() on uninit. diff -r 0767ef7f6ca2 -r 593354e0500d libvo/vo_vdpau.c --- a/libvo/vo_vdpau.c Thu Oct 22 15:40:04 2009 +0000 +++ b/libvo/vo_vdpau.c Thu Oct 22 18:44:39 2009 +0000 @@ -1111,10 +1111,18 @@ 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();