[vlc-commits] wasapi: fix leak
Rémi Denis-Courmont
git at videolan.org
Thu Jun 7 19:26:12 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 7 19:22:01 2012 +0300| [733a10516e611ff8121e5e1deb3b008bf557e71c] | committer: Rémi Denis-Courmont
wasapi: fix leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=733a10516e611ff8121e5e1deb3b008bf557e71c
---
modules/audio_output/wasapi.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index f41780e..512a19d 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -311,6 +311,11 @@ static void MTAThread(void *data)
ReleaseSemaphore(sys->ready, 1, NULL);
WaitForSingleObject(sys->done, INFINITE);
+ /*if (AOUT_FMT_LINEAR(&format) && !exclusive)*/
+ {
+ if (sys->volume.simple != NULL)
+ ISimpleAudioVolume_Release(sys->volume.simple);
+ }
if (sys->clock != NULL)
IAudioClock_Release(sys->clock);
IAudioRenderClient_Release(sys->render);
More information about the vlc-commits
mailing list