From d6ed5c20807c906868cf9977ddaf82b696cc4225 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Sun, 10 Nov 2019 00:47:57 +0100 Subject: [PATCH] Fix segfault: don't try to use midnam:update extension if host doesn't support it Signed-off-by: Christopher Arndt --- libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc index f180bee8f0..a3c23dde80 100644 --- a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc +++ b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc @@ -581,7 +581,8 @@ run (LV2_Handle instance, uint32_t n_samples) inform_ui (self); #ifdef LV2_EXTENDED - self->midnam->update (self->midnam->handle); + if (self->midnam) + self->midnam->update (self->midnam->handle); #endif }