Mercurial > mplayer.hg
changeset 29824:00068773e235
Properly free the pthread mutex for teletext.
author | reimar |
---|---|
date | Mon, 09 Nov 2009 15:37:15 +0000 |
parents | baf634c992be |
children | 9cf56cc1bbb2 |
files | libmpcodecs/dec_teletext.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/dec_teletext.c Mon Nov 09 15:34:55 2009 +0000 +++ b/libmpcodecs/dec_teletext.c Mon Nov 09 15:37:15 2009 +0000 @@ -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 @@ free(priv->ptsp); destroy_cache(priv); priv->page_changed=1; + pthread_mutex_destroy(&priv->buffer_mutex); free(priv); return VBI_CONTROL_TRUE; }