Skip to content

Commit

Permalink
client: fixed infinite loop in the 'sound memory leak' commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSimek committed Jul 29, 2012
1 parent becf960 commit 8492dc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/client/snd_dma.c
Expand Up @@ -2230,7 +2230,7 @@ void S_Base_Shutdown(void)
}

SNDDMA_Shutdown();
S_Base_Shutdown();
SND_shutdown();

s_soundStarted = 0;
numSfx = 0;
Expand Down
12 changes: 6 additions & 6 deletions src/client/snd_mem.c
Expand Up @@ -80,12 +80,6 @@ sndBuffer *SND_malloc(void)
return v;
}

void SND_shutdown(void)
{
free(sfxScratchBuffer);
free(buffer);
}

void SND_setup(void)
{
sndBuffer *p, *q;
Expand Down Expand Up @@ -113,6 +107,12 @@ void SND_setup(void)
Com_Printf("Sound memory manager started\n");
}

void SND_shutdown(void)
{
free(sfxScratchBuffer);
free(buffer);
}

/*
================
ResampleSfx
Expand Down

0 comments on commit 8492dc3

Please sign in to comment.