emu: close audio device if used
This commit is contained in:
parent
2afded6e05
commit
a3ee7ab982
|
@ -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 New Issue