shithub: dav1d

Download patch

ref: 540c0a7ac9716085c67ab3feb36b8a3faeabb5ec
parent: fc8e06d51d33b6b8fddc2f446758042d7edf58ba
author: James Almer <[email protected]>
date: Fri Oct 5 19:34:09 EDT 2018

thread: destroy the thread before freeing the dav1d_win32_thread_t struct

--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -75,6 +75,7 @@
 
     if (res != NULL)
         *res = th->res;
+    CloseHandle(th->h);
     free(th);
 }