[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/11] audio/audio_template: use g_malloc0() to replace audio_cal
From: |
Volker Rümelin |
Subject: |
[PATCH 07/11] audio/audio_template: use g_malloc0() to replace audio_calloc() |
Date: |
Sun, 18 Dec 2022 18:15:35 +0100 |
Use g_malloc0() as a direct replacement for audio_calloc().
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
---
audio/audio_template.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/audio/audio_template.h b/audio/audio_template.h
index d343a1dcb3..5f51ef26b2 100644
--- a/audio/audio_template.h
+++ b/audio/audio_template.h
@@ -273,7 +273,7 @@ static HW *glue(audio_pcm_hw_add_new_, TYPE)(AudioState *s,
return NULL;
}
- hw = audio_calloc(__func__, 1, glue(drv->voice_size_, TYPE));
+ hw = g_malloc0(glue(drv->voice_size_, TYPE));
if (!hw) {
dolog ("Can not allocate voice `%s' size %d\n",
drv->name, glue (drv->voice_size_, TYPE));
--
2.35.3
[PATCH 02/11] audio: don't show unnecessary error messages, Volker Rümelin, 2022/12/18
[PATCH 03/11] audio: rename hardware store to backend, Volker Rümelin, 2022/12/18
[PATCH 06/11] audio/alsaaudio: use g_new0() instead of audio_calloc(), Volker Rümelin, 2022/12/18