diff options
-rw-r--r-- | src/JackDriver.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index cadadb7..2a81b51 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -123,7 +123,9 @@ is_jack_port(const PatchagePort* port) void JackDriver::destroy_all() { - _app->canvas()->remove_ports(is_jack_port); + if (_app->canvas()) { + _app->canvas()->remove_ports(is_jack_port); + } } PatchagePort* |