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

fix memleaks with ref counted sequence and frame headers

parent 9ce4b734
......@@ -457,5 +457,8 @@ void dav1d_close(Dav1dContext **const c_out) {
dav1d_ref_dec(&c->refs[n].refmvs);
dav1d_ref_dec(&c->refs[n].segmap);
}
dav1d_ref_dec(&c->seq_hdr_ref);
dav1d_ref_dec(&c->frame_hdr_ref);
dav1d_freep_aligned(c_out);
}
......@@ -1248,8 +1248,8 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in, int global) {
if (c->cdf[i].cdf)
dav1d_cdf_thread_unref(&c->cdf[i]);
}
dav1d_ref_dec(&c->seq_hdr_ref);
}
dav1d_ref_dec(&c->seq_hdr_ref);
c->seq_hdr_ref = ref;
c->seq_hdr = seq_hdr;
break;
......
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