Properly free the pthread mutex for teletext.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29866 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-11-09 15:37:15 +00:00
parent 263e4a1144
commit a4434cf2d7
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,7 @@
#include <pthread.h>
#else
#define pthread_mutex_init(m, p)
#define pthread_mutex_destroy(m)
#define pthread_mutex_lock(m)
#define pthread_mutex_unlock(m)
#endif
@ -1738,6 +1739,7 @@ int teletext_control(void* p, int cmd, void *arg)
free(priv->ptsp);
destroy_cache(priv);
priv->page_changed=1;
pthread_mutex_destroy(&priv->buffer_mutex);
free(priv);
return VBI_CONTROL_TRUE;
}