[vlc-devel] commit: Fixed invalid free on picture_NewFromFormat failure in subpicture_region_New . (Laurent Aimar )

git version control git at videolan.org
Sun Feb 21 23:34:07 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Feb 21 22:48:34 2010 +0100| [7465767945a10c26ecbf7a961706f72a27c2e35d] | committer: Laurent Aimar 

Fixed invalid free on picture_NewFromFormat failure in subpicture_region_New.

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

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

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 5121eb8..68b1052 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -818,7 +818,7 @@ subpicture_region_t *subpicture_region_New( const video_format_t *p_fmt )
     p_region->p_picture = picture_NewFromFormat( p_fmt );
     if( !p_region->p_picture )
     {
-        free( p_fmt->p_palette );
+        free( p_region->fmt.p_palette );
         free( p_region );
         return NULL;
     }




More information about the vlc-devel mailing list