diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 22:09:37 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 23:01:08 -0500 |
commit | 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c (patch) | |
tree | 9aa05d6e05ed83e67bf014f6745a3081b8407dc5 /audio/wavaudio.c | |
parent | 14015304b662e8f8ccce46c5a6927af6a14c510b (diff) | |
download | qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.tar.gz qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.tar.bz2 qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.zip |
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'audio/wavaudio.c')
-rw-r--r-- | audio/wavaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/wavaudio.c b/audio/wavaudio.c index 294f35704f..aed18176ee 100644 --- a/audio/wavaudio.c +++ b/audio/wavaudio.c @@ -156,7 +156,7 @@ static int wav_init_out (HWVoiceOut *hw, struct audsettings *as) if (!wav->f) { dolog ("Failed to open wave file `%s'\nReason: %s\n", conf.wav_path, strerror (errno)); - qemu_free (wav->pcm_buf); + g_free (wav->pcm_buf); wav->pcm_buf = NULL; return -1; } @@ -189,7 +189,7 @@ static void wav_fini_out (HWVoiceOut *hw) qemu_fclose (wav->f); wav->f = NULL; - qemu_free (wav->pcm_buf); + g_free (wav->pcm_buf); wav->pcm_buf = NULL; } |