From 266bb13be2d6d91305587b58b450a47628b602cd Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sat, 9 Nov 2019 14:53:34 +0000 Subject: [PATCH] Compare some pointers to NULL Doesn't affect ASM-accuracy - I just think it looks neater. --- src/Sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sound.cpp b/src/Sound.cpp index f9e159b0..b4de9a0f 100644 --- a/src/Sound.cpp +++ b/src/Sound.cpp @@ -368,10 +368,10 @@ int MakePixToneObject(const PIXTONEPARAMETER *ptp, int ptp_num, int no) { if (!MakePixelWaveData(ptp_pointer, pcm_buffer)) { - if (pcm_buffer) + if (pcm_buffer != NULL) free(pcm_buffer); - if (mixed_pcm_buffer) + if (mixed_pcm_buffer != NULL) free(mixed_pcm_buffer); return -1;