From bbd39e8b712d9758cb1b4d5b20e8caf7057df675 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sun, 27 Jul 2008 21:17:10 +0200 Subject: [PATCH] Fixed double free on invalid scaling. --- src/video_output/vout_subpictures.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c index 8e4f3da551..e6abb43579 100644 --- a/src/video_output/vout_subpictures.c +++ b/src/video_output/vout_subpictures.c @@ -225,6 +225,8 @@ void spu_Attach( spu_t *p_spu, vlc_object_t *p_this, bool b_attach ) static void RegionPictureRelease( picture_t *p_pic ) { free( p_pic->p_data_orig ); + /* We use pf_release nullity to know if the picture has already been released. */ + p_pic->pf_release = NULL; } subpicture_region_t *__spu_CreateRegion( vlc_object_t *p_this, video_format_t *p_fmt ) -- 2.39.2