mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +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);
|
free(thread);
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
return pthread_detach(thread->id);
|
int ret = pthread_detach(thread->id);
|
||||||
|
free(thread);
|
||||||
|
return ret;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user