mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-22 07:30:50 +00:00
Fix possible NULL deref
when allocation of drybuf fails
This commit is contained in:
parent
4d76a6ad85
commit
dc3d7b8ffa
2 changed files with 2 additions and 2 deletions
|
@ -519,7 +519,7 @@ void delete_fluid_dsound_audio_driver(fluid_audio_driver_t *d)
|
|||
IDirectSound_Release(dev->direct_sound);
|
||||
}
|
||||
|
||||
if(dev->func)
|
||||
if(dev->drybuf != NULL)
|
||||
{
|
||||
for(i = 0; i < dev->channels_count; ++i)
|
||||
{
|
||||
|
|
|
@ -561,7 +561,7 @@ void delete_fluid_waveout_audio_driver(fluid_audio_driver_t *d)
|
|||
CloseHandle(dev->hQuit);
|
||||
}
|
||||
|
||||
if(dev->func)
|
||||
if(dev->drybuf != NULL)
|
||||
{
|
||||
for(i = 0; i < dev->channels_count; ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue