[vlc-commits] demux: hls: fix memory leak on playlist refresh

Francois Cartegnie git at videolan.org
Wed Aug 3 20:23:17 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Aug  3 20:21:15 2016 +0200| [488df3f0af8e914481124adfd541d70d24cc76ca] | committer: Francois Cartegnie

demux: hls: fix memory leak on playlist refresh

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

 modules/demux/hls/playlist/Parser.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index f68ee1c..e2ff062 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -172,9 +172,9 @@ bool M3U8Parser::appendSegmentsFromPlaylistURI(vlc_object_t *p_obj, Representati
             parseSegments(p_obj, rep, tagslist);
 
             releaseTagsList(tagslist);
-            return true;
         }
         block_Release(p_block);
+        return true;
     }
     return false;
 }



More information about the vlc-commits mailing list