Skip to content

Commit 7e627c5

Browse files
committed
fix NULL deref in jack driver
1 parent b46998b commit 7e627c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/drivers/fluid_jack.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,11 @@ fluid_jack_driver_process(jack_nframes_t nframes, void *arg)
658658
}
659659

660660
audio_driver = fluid_atomic_pointer_get(&client->audio_driver);
661+
if(audio_driver == NULL)
662+
{
663+
// shutting down
664+
return FLUID_OK;
665+
}
661666

662667
if(audio_driver->callback == NULL && audio_driver->num_output_ports == 1 && audio_driver->num_fx_ports == 0) /* i.e. audio.jack.multi=no */
663668
{

0 commit comments

Comments
 (0)