From b96d556451b36e8bec35fd79f2c02ff73190c184 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 1 Apr 2024 14:59:55 -0600 Subject: [PATCH] avoid heap allocation by std::vector in realtime context --- libs/ardour/lv2_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 9188621bb9..8c12a6b6b4 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1856,7 +1856,7 @@ LV2Plugin::write_to(RingBuffer* dest, return false; } - vector buf(buf_size); + uint8_t buf[buf_size]; UIMessage* msg = (UIMessage*)&buf[0]; msg->index = index; msg->protocol = protocol;