mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Fix ffmpeg core memory leak when using pthreads.
This commit is contained in:
parent
417d1b7de7
commit
d046594591
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user