summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-19 18:08:42 +0100
committerDavid Robillard <d@drobilla.net>2017-03-20 02:58:56 +0100
commit7a8cbbf3fe2a355e01d0e077395cc0876aecf019 (patch)
tree05e6d791d2faa1daf6068225292e5c86ac8ba924 /src
parente1439953c837b2d3d70a3481ba061bf1ba51f286 (diff)
downloadingen-7a8cbbf3fe2a355e01d0e077395cc0876aecf019.tar.gz
ingen-7a8cbbf3fe2a355e01d0e077395cc0876aecf019.tar.bz2
ingen-7a8cbbf3fe2a355e01d0e077395cc0876aecf019.zip
Always clear cached buffers before reuse
Diffstat (limited to 'src')
-rw-r--r--src/server/BufferFactory.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/BufferFactory.cpp b/src/server/BufferFactory.cpp
index 1dadd520..f2451405 100644
--- a/src/server/BufferFactory.cpp
+++ b/src/server/BufferFactory.cpp
@@ -134,6 +134,7 @@ BufferFactory::get_buffer(LV2_URID type,
try_head->_next = NULL;
try_head->set_type(&BufferFactory::get_buffer, type, value_type);
+ try_head->clear();
return BufferRef(try_head);
}