Commit 2c5eb9a4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

display: avoid use-after-free

parent 00b61f82
...@@ -471,6 +471,7 @@ static int VoutDisplayCreateRender(vout_display_t *vd) ...@@ -471,6 +471,7 @@ static int VoutDisplayCreateRender(vout_display_t *vd)
if (filter == NULL) { if (filter == NULL) {
msg_Err(vd, "Failed to adapt decoder format to display"); msg_Err(vd, "Failed to adapt decoder format to display");
filter_chain_Delete(osys->filters); filter_chain_Delete(osys->filters);
osys->filters = NULL;
return -1; return -1;
} }
return 0; return 0;
......
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