[vlc-commits] subpicture: fix leak

Rémi Denis-Courmont git at videolan.org
Sat Aug 29 16:45:44 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 29 17:45:27 2015 +0300| [45e9b837dfadf004d5612f317826e92e3802fc0a] | committer: Rémi Denis-Courmont

subpicture: fix leak

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

 src/misc/subpicture.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/subpicture.c b/src/misc/subpicture.c
index 998c52e..945e4e9 100644
--- a/src/misc/subpicture.c
+++ b/src/misc/subpicture.c
@@ -246,7 +246,7 @@ void subpicture_region_Delete( subpicture_region_t *p_region )
     if( p_region->p_picture )
         picture_Release( p_region->p_picture );
 
-    // Don't release text_segment's, they are owned by the subpicture itself
+    text_segment_Delete( p_region->p_text );
     free( p_region->fmt.p_palette );
     free( p_region );
 }



More information about the vlc-commits mailing list