emu: close audio device if used
This commit is contained in:
parent
2afded6e05
commit
a3ee7ab982
|
@ -231,7 +231,8 @@ redraw(Uxn *u)
|
||||||
static void
|
static void
|
||||||
quit(void)
|
quit(void)
|
||||||
{
|
{
|
||||||
SDL_UnlockAudioDevice(audio_id);
|
if(audio_id)
|
||||||
|
SDL_CloseAudioDevice(audio_id);
|
||||||
SDL_DestroyTexture(gTexture);
|
SDL_DestroyTexture(gTexture);
|
||||||
gTexture = NULL;
|
gTexture = NULL;
|
||||||
SDL_DestroyRenderer(gRenderer);
|
SDL_DestroyRenderer(gRenderer);
|
||||||
|
|
Loading…
Reference in New Issue