summaryrefslogtreecommitdiffstats
path: root/src/libs/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine')
-rw-r--r--src/libs/engine/LV2Node.cpp2
-rw-r--r--src/libs/engine/Port.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/engine/LV2Node.cpp b/src/libs/engine/LV2Node.cpp
index 7e56c64d..1ab03578 100644
--- a/src/libs/engine/LV2Node.cpp
+++ b/src/libs/engine/LV2Node.cpp
@@ -192,7 +192,7 @@ LV2Node::~LV2Node()
for (uint32_t i=0; i < _poly; ++i)
slv2_instance_free((*_instances)[i]);
- delete[] _instances;
+ delete _instances;
}
diff --git a/src/libs/engine/Port.cpp b/src/libs/engine/Port.cpp
index 0a4c9f06..bcf47e90 100644
--- a/src/libs/engine/Port.cpp
+++ b/src/libs/engine/Port.cpp
@@ -53,6 +53,8 @@ Port::~Port()
{
for (uint32_t i=0; i < _poly; ++i)
delete _buffers->at(i);
+
+ delete _buffers;
}