[vlc-devel] commit: Fixed double free on invalid scaling. (Laurent Aimar )

git version control git at videolan.org
Sun Jul 27 21:24:24 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jul 27 21:17:10 2008 +0200| [bbd39e8b712d9758cb1b4d5b20e8caf7057df675]

Fixed double free on invalid scaling.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bbd39e8b712d9758cb1b4d5b20e8caf7057df675
---

 src/video_output/vout_subpictures.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 8e4f3da..e6abb43 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 )




More information about the vlc-devel mailing list