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:
parent
2afded6e05
commit
a3ee7ab982
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue