summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/wavwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/wavwrite.c')
-rw-r--r--src/emu/sound/wavwrite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/sound/wavwrite.c b/src/emu/sound/wavwrite.c
index 1d318a08b9e..5cd884d7417 100644
--- a/src/emu/sound/wavwrite.c
+++ b/src/emu/sound/wavwrite.c
@@ -126,7 +126,7 @@ void wav_add_data_32(wav_file *wav, INT32 *data, int samples, int shift)
if (!wav) return;
/* allocate temp memory */
- temp = (INT16 *)osd_malloc(samples * sizeof(temp[0]));
+ temp = (INT16 *)osd_malloc_array(samples * sizeof(temp[0]));
if (!temp)
return;
@@ -154,7 +154,7 @@ void wav_add_data_16lr(wav_file *wav, INT16 *left, INT16 *right, int samples)
if (!wav) return;
/* allocate temp memory */
- temp = (INT16 *)osd_malloc(samples * 2 * sizeof(temp[0]));
+ temp = (INT16 *)osd_malloc_array(samples * 2 * sizeof(temp[0]));
if (!temp)
return;
@@ -179,7 +179,7 @@ void wav_add_data_32lr(wav_file *wav, INT32 *left, INT32 *right, int samples, in
if (!wav) return;
/* allocate temp memory */
- temp = (INT16 *)osd_malloc(samples * 2 * sizeof(temp[0]));
+ temp = (INT16 *)osd_malloc_array(samples * 2 * sizeof(temp[0]));
if (!temp)
return;