check for return

This commit is contained in:
Nishi 2025-11-27 04:50:35 +09:00
commit d659d6c5ca
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

@ -64,6 +64,11 @@ void audio_queue(const char* path) {
q.sound = MDESoundOpen(q.path);
q.frames = 0;
if(q.sound == NULL) {
free(q.path);
return;
}
MDEMutexLock(audio_mutex);
arrput(queue, q);
if(queue_seek == -1) queue_seek = arrlen(queue) - 1;