[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 875ef64] winwave: close event handle and delete w

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 875ef64] winwave: close event handle and delete wait objectafter closing HWAVEOUT
Date: Sun, 11 Oct 2009 02:53:54 -0000

From: malc <address@hidden>

To avoid possibly being called back and thus racing.

Signed-off-by: malc <address@hidden>

diff --git a/audio/winwaveaudio.c b/audio/winwaveaudio.c
index 5bbce2a..1486da1 100644
--- a/audio/winwaveaudio.c
+++ b/audio/winwaveaudio.c
@@ -263,6 +263,8 @@ static void winwave_fini_out (HWVoiceOut *hw)
     WaveVoiceOut *wave = (WaveVoiceOut *) hw;
+    winwave_anal_close_out (wave);
     if (wave->event) {
         qemu_del_wait_object (wave->event, winwave_poll_out, wave);
         if (!CloseHandle (wave->event)) {
@@ -271,8 +273,6 @@ static void winwave_fini_out (HWVoiceOut *hw)
         wave->event = NULL;
-    winwave_anal_close_out (wave);
     qemu_free (wave->pcm_buf);
     wave->pcm_buf = NULL;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]