summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-06-09 01:47:43 +0000
committerDavid Robillard <d@drobilla.net>2008-06-09 01:47:43 +0000
commita57b168fc7d3f1c2737045da1598ebb78feba1fa (patch)
tree399bf4b6d7e4da03aeab873dad5bd0c60b02225a /src/libs
parent6a66c54eaa2a60b938b9b45287906c304cb99594 (diff)
downloadingen-a57b168fc7d3f1c2737045da1598ebb78feba1fa.tar.gz
ingen-a57b168fc7d3f1c2737045da1598ebb78feba1fa.tar.bz2
ingen-a57b168fc7d3f1c2737045da1598ebb78feba1fa.zip
Fix crash on instantiation of Control node.
git-svn-id: http://svn.drobilla.net/lad/ingen@1234 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/engine/MidiControlNode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/engine/MidiControlNode.cpp b/src/libs/engine/MidiControlNode.cpp
index 45f5f034..d9c426e3 100644
--- a/src/libs/engine/MidiControlNode.cpp
+++ b/src/libs/engine/MidiControlNode.cpp
@@ -40,7 +40,7 @@ MidiControlNode::MidiControlNode(const string& path,
, path, false, parent, srate, buffer_size)
, _learning(false)
{
- _ports = new Raul::Array<PortImpl*>(7);
+ _ports = new Raul::Array<PortImpl*>(6);
_midi_in_port = new InputPort(this, "input", 0, 1, DataType::EVENT, Atom(), _buffer_size);
_ports->at(0) = _midi_in_port;