[vlc-commits] text_style: fix use-after-free (cid #1313831)
Tristan Matthews
git at videolan.org
Fri Jul 31 11:31:10 CEST 2015
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Fri Jul 31 05:28:03 2015 -0400| [8ef648f3f1b7b70cd4ff2d5b029f6f095f9ec811] | committer: Tristan Matthews
text_style: fix use-after-free (cid #1313831)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8ef648f3f1b7b70cd4ff2d5b029f6f095f9ec811
---
src/misc/text_style.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/misc/text_style.c b/src/misc/text_style.c
index 4dd27a3..82c9640 100644
--- a/src/misc/text_style.c
+++ b/src/misc/text_style.c
@@ -127,8 +127,8 @@ void text_segment_Delete( text_segment_t* segment )
if ( segment != NULL )
{
free( segment->psz_text );
- free( segment );
text_style_Delete( segment->style );
+ free( segment );
}
}
More information about the vlc-commits
mailing list