Compare some pointers to NULL

Doesn't affect ASM-accuracy - I just think it looks neater.
This commit is contained in:
Clownacy 2019-11-09 14:53:34 +00:00
parent 5026964d98
commit 266bb13be2

View file

@ -368,10 +368,10 @@ int MakePixToneObject(const PIXTONEPARAMETER *ptp, int ptp_num, int no)
{ {
if (!MakePixelWaveData(ptp_pointer, pcm_buffer)) if (!MakePixelWaveData(ptp_pointer, pcm_buffer))
{ {
if (pcm_buffer) if (pcm_buffer != NULL)
free(pcm_buffer); free(pcm_buffer);
if (mixed_pcm_buffer) if (mixed_pcm_buffer != NULL)
free(mixed_pcm_buffer); free(mixed_pcm_buffer);
return -1; return -1;