OSDN Git Service

fix qemu_alloc/qemu_free for audio subsystem
authorJean-Christophe Dubois <jcd@jcd-laptop.(none)>
Thu, 18 Jun 2009 20:50:14 +0000 (22:50 +0200)
committermalc <av1474@comtv.ru>
Thu, 18 Jun 2009 22:46:14 +0000 (02:46 +0400)
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
audio/paaudio.c

index ff43bdd..a50fccc 100644 (file)
@@ -340,7 +340,7 @@ static int qpa_init_out (HWVoiceOut *hw, struct audsettings *as)
     return 0;
 
  fail3:
-    free (pa->pcm_buf);
+    qemu_free (pa->pcm_buf);
     pa->pcm_buf = NULL;
  fail2:
     pa_simple_free (pa->s);
@@ -394,7 +394,7 @@ static int qpa_init_in (HWVoiceIn *hw, struct audsettings *as)
     return 0;
 
  fail3:
-    free (pa->pcm_buf);
+    qemu_free (pa->pcm_buf);
     pa->pcm_buf = NULL;
  fail2:
     pa_simple_free (pa->s);