mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- missing null check
This commit is contained in:
parent
31e792223a
commit
d9e23c0ab9
1 changed files with 5 additions and 2 deletions
|
@ -106,8 +106,11 @@ SoundStream *S_CreateCustomStream(size_t size, int samplerate, int numchannels,
|
|||
|
||||
void S_StopCustomStream(SoundStream *stream)
|
||||
{
|
||||
stream->Stop();
|
||||
delete stream;
|
||||
if (stream)
|
||||
{
|
||||
stream->Stop();
|
||||
delete stream;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue