[vlc-commits] codec: substext: fix leak with multiple regions
Francois Cartegnie
git at videolan.org
Fri Oct 20 23:27:10 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Oct 20 22:40:39 2017 +0200| [3c83315b670963f9cd0cf998bde3a1ed43113364] | committer: Francois Cartegnie
codec: substext: fix leak with multiple regions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c83315b670963f9cd0cf998bde3a1ed43113364
---
modules/codec/substext.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/substext.h b/modules/codec/substext.h
index bf650a4a2f..ecc408f4a8 100644
--- a/modules/codec/substext.h
+++ b/modules/codec/substext.h
@@ -262,6 +262,7 @@ static void SubpictureTextDestroy(subpicture_t *subpic)
{
subpicture_updater_sys_region_t *p_next = p_region->p_next;
SubpictureUpdaterSysRegionClean( p_region );
+ free( p_region );
p_region = p_next;
}
text_style_Delete( sys->p_default_style );
More information about the vlc-commits
mailing list