Commit 5b77eea2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: fix leak

parent 02f9253e
......@@ -977,7 +977,11 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
subpic = NULL;
}
if (!sys->display.filtered)
{
if (subpic != NULL)
subpicture_Delete(subpic);
return VLC_EGENERIC;
}
}
vout_chrono_Stop(&vout->p->render);
......
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