shithub: dav1d

Download patch

ref: 1c749e6b4f5136014bfbe71fb5933f05510c61be
parent: e630831bf2f1cad57d5e4b3662c36b33dc2ede4e
author: Raphael Zumer <rzumer@tebako.net>
date: Sun Sep 23 00:10:32 EDT 2018

Fix duplicate frame thread pointer freeing on close

--- a/src/lib.c
+++ b/src/lib.c
@@ -221,8 +221,8 @@
             pthread_mutex_unlock(&f->frame_thread.td.lock);
             pthread_join(f->frame_thread.td.thread, NULL);
             freep(&f->frame_thread.b);
-            dav1d_free_aligned(&f->frame_thread.pal_idx);
-            dav1d_free_aligned(&f->frame_thread.cf);
+            dav1d_freep_aligned(&f->frame_thread.pal_idx);
+            dav1d_freep_aligned(&f->frame_thread.cf);
             freep(&f->frame_thread.tile_start_off);
             freep(&f->frame_thread.pal);
             freep(&f->frame_thread.cbi);