diff options
Diffstat (limited to 'src/engine/LV2Node.cpp')
-rw-r--r-- | src/engine/LV2Node.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/LV2Node.cpp b/src/engine/LV2Node.cpp index 92f32b3c..df2ccbb2 100644 --- a/src/engine/LV2Node.cpp +++ b/src/engine/LV2Node.cpp @@ -60,8 +60,9 @@ LV2Node::LV2Node(LV2Plugin* plugin, LV2Node::~LV2Node() { - for (uint32_t i=0; i < _polyphony; ++i) - slv2_instance_free((*_instances)[i]); + if (_instances) + for (uint32_t i=0; i < _polyphony; ++i) + slv2_instance_free((*_instances)[i]); delete _instances; } |