mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-13 11:21:06 +00:00
Fix a memory leak in Oboe driver (#626)
This commit is contained in:
parent
c9d023230a
commit
cc85d285b5
1 changed files with 3 additions and 1 deletions
|
@ -208,7 +208,6 @@ void delete_fluid_oboe_audio_driver(fluid_audio_driver_t *p)
|
|||
|
||||
try
|
||||
{
|
||||
|
||||
dev->cont = 0;
|
||||
|
||||
if(dev->stream != NULL)
|
||||
|
@ -219,6 +218,9 @@ void delete_fluid_oboe_audio_driver(fluid_audio_driver_t *p)
|
|||
}
|
||||
catch(...) {}
|
||||
|
||||
// the audio stream is silently allocated with new, but neither the API docs nor code examples mention that it should be deleted
|
||||
delete dev->stream;
|
||||
|
||||
delete dev->oboe_callback;
|
||||
|
||||
FLUID_FREE(dev);
|
||||
|
|
Loading…
Reference in a new issue