summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libmpeg2/xine_decoder.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libmpeg2/xine_decoder.c b/src/libmpeg2/xine_decoder.c
index a918b9b1c..d31713612 100644
--- a/src/libmpeg2/xine_decoder.c
+++ b/src/libmpeg2/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.29 2002/04/23 15:45:24 esnel Exp $
+ * $Id: xine_decoder.c,v 1.30 2002/04/28 10:32:34 esnel Exp $
*
* stuff needed to turn libmpeg2 into a xine decoder plugin
*/
@@ -142,7 +142,10 @@ static char *mpeg2dec_get_id(void) {
}
static void mpeg2dec_dispose (video_decoder_t *this_gen) {
- free (this_gen);
+ mpeg2dec_decoder_t *this = (mpeg2dec_decoder_t *) this_gen;
+
+ pthread_mutex_destroy (this->lock);
+ free (this);
}
video_decoder_t *init_video_decoder_plugin (int iface_version, xine_t *xine) {