- missing null check

This commit is contained in:
Christoph Oelckers 2020-08-20 23:41:45 +02:00
parent 31e792223a
commit d9e23c0ab9
1 changed files with 5 additions and 2 deletions

View File

@ -106,8 +106,11 @@ SoundStream *S_CreateCustomStream(size_t size, int samplerate, int numchannels,
void S_StopCustomStream(SoundStream *stream)
{
if (stream)
{
stream->Stop();
delete stream;
}
}