mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 19:37:30 +01:00
Don't try to delete the global memory mutex in the Win32 loader code,
since it's now statically allocated and will not be reallocated if a new allocation comes along. This also fixes an issue where the mutex would not always be properly unlocked, leading to deadlocks. I thought I'd committed that ages ago, but obviously not, and it broke CineForm initialization. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30957 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a630204d0a
commit
af6fb3740e
@ -436,10 +436,7 @@ static int my_release(void* memory)
|
||||
|
||||
alccnt--;
|
||||
|
||||
if (last_alloc)
|
||||
pthread_mutex_unlock(&memmut);
|
||||
else
|
||||
pthread_mutex_destroy(&memmut);
|
||||
pthread_mutex_unlock(&memmut);
|
||||
|
||||
//if (alccnt < 40000) printf("MY_RELEASE: %p\t%ld (%d)\n", header, header->size, alccnt);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user