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:
sesse 2010-03-25 12:58:41 +00:00
parent a630204d0a
commit af6fb3740e
1 changed files with 1 additions and 4 deletions

View File

@ -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