[vlc-commits] subpicture: fix memory leaks

Hannes Domani git at videolan.org
Sat Feb 7 16:32:18 CET 2015


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Wed Sep 17 19:58:30 2014 +0200| [2e45e74fae25ccdae5ba4d5cf7f93fdd2c99f944] | committer: Jean-Baptiste Kempf

subpicture: fix memory leaks

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 src/misc/subpicture.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/misc/subpicture.c b/src/misc/subpicture.c
index 9e2fbb7..0eb9c47 100644
--- a/src/misc/subpicture.c
+++ b/src/misc/subpicture.c
@@ -88,6 +88,12 @@ void subpicture_Delete( subpicture_t *p_subpic )
     if( p_subpic->updater.pf_destroy )
         p_subpic->updater.pf_destroy( p_subpic );
 
+    if( p_subpic->p_private )
+    {
+        video_format_Clean( &p_subpic->p_private->src );
+        video_format_Clean( &p_subpic->p_private->dst );
+    }
+
     free( p_subpic->p_private );
     free( p_subpic );
 }



More information about the vlc-commits mailing list