Fix ffmpeg core memory leak when using pthreads.

This commit is contained in:
Nils Hasenbanck 2019-12-18 15:05:01 +01:00
parent 417d1b7de7
commit d046594591

View File

@ -268,7 +268,9 @@ int sthread_detach(sthread_t *thread)
free(thread);
return 0;
#else
return pthread_detach(thread->id);
int ret = pthread_detach(thread->id);
free(thread);
return ret;
#endif
}