Commit d7469607 authored by Laurent Aimar's avatar Laurent Aimar

Fixed invalid pointer usage after free (vout).

It closes #3999.
parent 530fe3e4
...@@ -1048,9 +1048,6 @@ static int ThreadStart(vout_thread_t *vout, const vout_display_state_t *state) ...@@ -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) 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 */ /* Destroy translation tables */
if (vout->p->display.vd) { if (vout->p->display.vd) {
if (vout->p->decoder_pool) { if (vout->p->decoder_pool) {
...@@ -1060,6 +1057,9 @@ static void ThreadStop(vout_thread_t *vout, vout_display_state_t *state) ...@@ -1060,6 +1057,9 @@ static void ThreadStop(vout_thread_t *vout, vout_display_state_t *state)
vout_CloseWrapper(vout, state); vout_CloseWrapper(vout, state);
} }
/* Destroy the video filters2 */
filter_chain_Delete(vout->p->filter.chain);
if (vout->p->decoder_fifo) if (vout->p->decoder_fifo)
picture_fifo_Delete(vout->p->decoder_fifo); picture_fifo_Delete(vout->p->decoder_fifo);
assert(!vout->p->decoder_pool); assert(!vout->p->decoder_pool);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment