projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4e8d0b
)
winwave: close event handle and delete wait object after closing HWAVEOUT
author
malc
<av1474@comtv.ru>
Sun, 11 Oct 2009 02:38:47 +0000
(06:38 +0400)
committer
malc
<av1474@comtv.ru>
Sun, 11 Oct 2009 02:38:47 +0000
(06:38 +0400)
To avoid possibly being called back and thus racing.
Signed-off-by: malc <av1474@comtv.ru>
audio/winwaveaudio.c
patch
|
blob
|
history
diff --git
a/audio/winwaveaudio.c
b/audio/winwaveaudio.c
index 5bbce2abdc0d6b703c3e8f97c5034587d4137cf1..1486da1b958b83434ef75dec0bce65735f21dabe 100644
(file)
--- 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;