summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}