Rémi Bernon (@rbernon) commented about dlls/dmsynth/synth.c:
free(event); }
LIST_FOR_EACH_ENTRY_SAFE(voice, next, &This->voices, struct voice, entry)
{
list_remove(&voice->entry);
if (voice->wave)
You can remove the if there, wave cannot be NULL, same below.