0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-28 00:33:02 +00:00

emu: close audio device if used

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-10-24 22:14:27 +02:00
parent 2afded6e05
commit a3ee7ab982
No known key found for this signature in database
GPG key ID: FC8DDA5A6A7456C4

View file

@ -231,7 +231,8 @@ redraw(Uxn *u)
static void
quit(void)
{
SDL_UnlockAudioDevice(audio_id);
if(audio_id)
SDL_CloseAudioDevice(audio_id);
SDL_DestroyTexture(gTexture);
gTexture = NULL;
SDL_DestroyRenderer(gRenderer);