[vlc-commits] Fixed a huge memory leak due to OSD.

Laurent Aimar git at videolan.org
Sun Feb 13 12:16:10 CET 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Feb 13 12:15:17 2011 +0100| [70000c98d8a9dd435598d43b25452deaf6579c41] | committer: Laurent Aimar

Fixed a huge memory leak due to OSD.

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

 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 524bf20..dc21fa7 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -990,6 +990,8 @@ static void SpuRenderRegion( spu_t *p_spu,
         p_dst->i_x       = i_x_offset;
         p_dst->i_y       = i_y_offset;
         p_dst->i_align   = 0;
+        if( p_dst->p_picture )
+            picture_Release( p_dst->p_picture );
         p_dst->p_picture = picture_Hold( p_region_picture );
         int i_fade_alpha = 255;
         if( p_subpic->b_fade )



More information about the vlc-commits mailing list