Commit f55ac48c authored by Janne Grunau's avatar Janne Grunau

dav1d_ref_dec: always set the ref pointer to NULL

parent 9fb690fa
......@@ -80,6 +80,7 @@ void dav1d_ref_dec(Dav1dRef **const pref) {
if (atomic_fetch_sub(&ref->ref_cnt, 1) == 1) {
ref->free_callback(ref->const_data, ref->user_data);
*pref = NULL;
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