[vlc-commits] transcode: Fix typo-induced memory leak

Hugo Beauzée-Luyssen git at videolan.org
Mon Jul 17 17:29:54 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Jul 17 14:35:11 2017 +0200| [b10984e406f52a6524598396948ca86d2b57bbdc] | committer: Hugo Beauzée-Luyssen

transcode: Fix typo-induced memory leak

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

 modules/stream_out/transcode/transcode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/transcode/transcode.c b/modules/stream_out/transcode/transcode.c
index 3eba37a414..80e7fd1065 100644
--- a/modules/stream_out/transcode/transcode.c
+++ b/modules/stream_out/transcode/transcode.c
@@ -464,8 +464,8 @@ static void DeleteSoutStreamID( sout_stream_id_sys_t *id )
     {
         if( id->p_decoder )
         {
-            es_format_Clean( &id->p_encoder->fmt_in );
-            es_format_Clean( &id->p_encoder->fmt_out );
+            es_format_Clean( &id->p_decoder->fmt_in );
+            es_format_Clean( &id->p_decoder->fmt_out );
             vlc_object_release( id->p_decoder );
         }
 



More information about the vlc-commits mailing list