Commit 7be6cf31 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

display: fix leak on error

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