mirror of https://github.com/mpv-player/mpv
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>
|
#include <pthread.h>
|
||||||
#else
|
#else
|
||||||
#define pthread_mutex_init(m, p)
|
#define pthread_mutex_init(m, p)
|
||||||
|
#define pthread_mutex_destroy(m)
|
||||||
#define pthread_mutex_lock(m)
|
#define pthread_mutex_lock(m)
|
||||||
#define pthread_mutex_unlock(m)
|
#define pthread_mutex_unlock(m)
|
||||||
#endif
|
#endif
|
||||||
|
@ -1738,6 +1739,7 @@ int teletext_control(void* p, int cmd, void *arg)
|
||||||
free(priv->ptsp);
|
free(priv->ptsp);
|
||||||
destroy_cache(priv);
|
destroy_cache(priv);
|
||||||
priv->page_changed=1;
|
priv->page_changed=1;
|
||||||
|
pthread_mutex_destroy(&priv->buffer_mutex);
|
||||||
free(priv);
|
free(priv);
|
||||||
return VBI_CONTROL_TRUE;
|
return VBI_CONTROL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue