Commit 6e796314 authored by Janne Grunau's avatar Janne Grunau Committed by Jean-Baptiste Kempf

decode: clean up properly after frame allocation error

parent fa93b8ff
......@@ -2902,9 +2902,7 @@ int dav1d_submit_frame(Dav1dContext *const c) {
f->frame_hdr.show_frame,
&c->allocator)) < 0)
{
if (f->frame_hdr.refresh_context)
dav1d_cdf_thread_unref(&f->out_cdf);
return res;
goto error;
}
f->cur.p.poc = f->frame_hdr.frame_offset;
......
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