diff options
author | Wan-Teh Chang <wtc@google.com> | 2022-02-25 22:03:12 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-02-25 22:55:09 +0300 |
commit | 54a4dbb573965b78714b14f7ac11547ebf70db7a (patch) | |
tree | 0b9cc3849f7229f9b33deaf45a1d907639174646 | |
parent | 65953c862d392868d167ae6c4327d869da8a98ea (diff) |
Remove redundant unref of c->in in close_internal
The dav1d_data_unref_internal(&c->in) call in close_internal() is
redundant because dav1d_flush() already calls
dav1d_data_unref_internal(&c->in).
Note that when dav1d_open() calls close_internal() with flush=0 to free
a newly constructed Dav1dContext, it is not necessary to unref c->in.
-rw-r--r-- | src/lib.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -649,7 +649,6 @@ static COLD void close_internal(Dav1dContext **const c_out, int flush) { dav1d_free_aligned(f->lf.lr_line_buf); } dav1d_free_aligned(c->fc); - dav1d_data_unref_internal(&c->in); if (c->n_fc > 1 && c->frame_thread.out_delayed) { for (unsigned n = 0; n < c->n_fc; n++) if (c->frame_thread.out_delayed[n].p.data[0]) |