summaryrefslogtreecommitdiffstats
path: root/src/libs/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-19 20:21:12 +0000
committerDavid Robillard <d@drobilla.net>2007-09-19 20:21:12 +0000
commita054212abbdb26e03ca42c91d0c86819d445bc5f (patch)
treee141854bfdd44729f66b6a29a3b81936daac0edf /src/libs/engine
parent3cec9fedc575aab5a3d625fc1de7649551b9531e (diff)
downloadingen-a054212abbdb26e03ca42c91d0c86819d445bc5f.tar.gz
ingen-a054212abbdb26e03ca42c91d0c86819d445bc5f.tar.bz2
ingen-a054212abbdb26e03ca42c91d0c86819d445bc5f.zip
Fix various serialization problems.
git-svn-id: http://svn.drobilla.net/lad/ingen@731 a436a847-0d15-0410-975c-d299462d15a1
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;
}