From b2795b0844cfab5f5d73f93f90df417a037f73eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20Ni=C3=9Fl?= Date: Tue, 30 Dec 2008 13:50:01 +0000 Subject: Memory management cleanup; fix freeze after decoder failure. --- src/video_out/video_out_vdpau.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/video_out') diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c index 33dd0f717..4009b08d1 100644 --- a/src/video_out/video_out_vdpau.c +++ b/src/video_out/video_out_vdpau.c @@ -1178,6 +1178,7 @@ static void vdpau_dispose (vo_driver_t *this_gen) vdpau_driver_t *this = (vdpau_driver_t *) this_gen; int i; + this->ovl_yuv2rgb->dispose(this->ovl_yuv2rgb); this->yuv2rgb_factory->dispose (this->yuv2rgb_factory); for ( i=0; ioverlays[i].ovl_bitmap ); } + if ( this->video_mixer!=VDP_INVALID_HANDLE ) + vdp_video_mixer_destroy( this->video_mixer ); if ( this->overlay_unscaled!=VDP_INVALID_HANDLE ) vdp_output_surface_destroy( this->overlay_unscaled ); if ( this->overlay_output!=VDP_INVALID_HANDLE ) -- cgit v1.2.3