mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:33:46 +01:00
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:
parent
263e4a1144
commit
a4434cf2d7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user