]> git.sesse.net Git - vlc/commitdiff
subpicture: fix memory leaks
authorHannes Domani <ssbssa@yahoo.de>
Wed, 17 Sep 2014 17:58:30 +0000 (19:58 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 7 Feb 2015 15:28:03 +0000 (16:28 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/misc/subpicture.c

index 9e2fbb7dcb5f57da1320661f429c516b820125c7..0eb9c47274c4952e0f873cba78b608ca8b631da8 100644 (file)
@@ -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 );
 }