diff options
author | David Robillard <d@drobilla.net> | 2007-09-30 17:36:38 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-30 17:36:38 +0000 |
commit | c40ddfc0eebbcb3333d6cc9e3df7fb62ecb45941 (patch) | |
tree | 6e73d5d43284335031cee32f9225b698f315a59d /src/libs/engine/NodeBase.cpp | |
parent | 829075dff9fe5d0b3f243f9e40256563a5f8e09a (diff) | |
download | ingen-c40ddfc0eebbcb3333d6cc9e3df7fb62ecb45941.tar.gz ingen-c40ddfc0eebbcb3333d6cc9e3df7fb62ecb45941.tar.bz2 ingen-c40ddfc0eebbcb3333d6cc9e3df7fb62ecb45941.zip |
Better driver interface for input/output.
MIDI output (pass-through anyway, plugin->output is still screwy).
Fix crash on failure to instantiate LV2 plugin.
git-svn-id: http://svn.drobilla.net/lad/ingen@786 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/NodeBase.cpp')
-rw-r--r-- | src/libs/engine/NodeBase.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/engine/NodeBase.cpp b/src/libs/engine/NodeBase.cpp index 5e6176f0..54caf8f8 100644 --- a/src/libs/engine/NodeBase.cpp +++ b/src/libs/engine/NodeBase.cpp @@ -61,8 +61,9 @@ NodeBase::~NodeBase() delete _providers; delete _dependants; - for (uint32_t i=0; i < num_ports(); ++i) - delete _ports->at(i); + if (_ports) + for (uint32_t i=0; i < num_ports(); ++i) + delete _ports->at(i); } |