diff options
author | David Robillard <d@drobilla.net> | 2011-11-26 04:19:02 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-26 04:19:02 +0000 |
commit | df7057e949db637f9d2d58272d08c7aae58be961 (patch) | |
tree | c038f6eadc25baba0ba285b3610f7e4d15cb747b /src | |
parent | c9491c87b0f0c6cf7f73ecd6ba87ba12ab6dc6d2 (diff) | |
download | patchage-df7057e949db637f9d2d58272d08c7aae58be961.tar.gz patchage-df7057e949db637f9d2d58272d08c7aae58be961.tar.bz2 patchage-df7057e949db637f9d2d58272d08c7aae58be961.zip |
Fix potential crash on exit.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3640 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-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* |