[vlc-commits] commit: Fixed invalid pointer usage after free (vout). (Laurent Aimar )
git at videolan.org
git at videolan.org
Wed Aug 11 22:19:05 CEST 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Aug 11 22:17:35 2010 +0200| [d74696079d2ee470660f2c1794481d3a4e50fb92] | committer: Laurent Aimar
Fixed invalid pointer usage after free (vout).
It closes #3999.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d74696079d2ee470660f2c1794481d3a4e50fb92
---
src/video_output/video_output.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 66080d2..04832b2 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1048,9 +1048,6 @@ static int ThreadStart(vout_thread_t *vout, const vout_display_state_t *state)
static void ThreadStop(vout_thread_t *vout, vout_display_state_t *state)
{
- /* Destroy the video filters2 */
- filter_chain_Delete(vout->p->filter.chain);
-
/* Destroy translation tables */
if (vout->p->display.vd) {
if (vout->p->decoder_pool) {
@@ -1060,6 +1057,9 @@ static void ThreadStop(vout_thread_t *vout, vout_display_state_t *state)
vout_CloseWrapper(vout, state);
}
+ /* Destroy the video filters2 */
+ filter_chain_Delete(vout->p->filter.chain);
+
if (vout->p->decoder_fifo)
picture_fifo_Delete(vout->p->decoder_fifo);
assert(!vout->p->decoder_pool);
More information about the vlc-commits
mailing list