From 3dc9fe628d0832bf2866afd9dc83e27ee85435e5 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sun, 22 Jun 2003 17:10:41 +0000 Subject: some additional pthread_*_destroy() calls (based on the implementation, this might fix memleaks on some platforms, although I doubt that this is the case here) CVS patchset: 5091 CVS date: 2003/06/22 17:10:41 --- src/audio_out/audio_alsa_out.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/audio_out') diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c index d4ab10c73..b14bc0c89 100644 --- a/src/audio_out/audio_alsa_out.c +++ b/src/audio_out/audio_alsa_out.c @@ -26,7 +26,7 @@ * (c) 2001 James Courtier-Dutton * * - * $Id: audio_alsa_out.c,v 1.94 2003/06/18 12:59:39 mroi Exp $ + * $Id: audio_alsa_out.c,v 1.95 2003/06/22 17:10:41 mroi Exp $ */ #ifdef HAVE_CONFIG_H @@ -1074,6 +1074,8 @@ static void ao_alsa_mixer_init(ao_driver_t *this_gen) { pthread_attr_setschedparam(&pth_attrs, &pth_params); pthread_create(&this->mixer.thread, &pth_attrs, ao_alsa_handle_event_thread, (void *) this); + + pthread_attr_destroy(&pth_attrs); } } -- cgit v1.2.3