From 92e72260b120c9f04a26a358ccb36b65f1a88ffa Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 3 May 2011 14:34:40 +0000 Subject: [PATCH] without drobilla's new stuff, LV2Plugin::_ui_type points to global data so do not try to free it git-svn-id: svn://localhost/ardour2/branches/3.0@9464 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/lv2_plugin.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 67fbd97c32..e7c9dad4ec 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -261,8 +261,11 @@ LV2Plugin::~LV2Plugin () slv2_instance_free(_instance); slv2_value_free(_name); slv2_value_free(_author); +#if defined(HAVE_NEW_SLV2) and defined(HAVE_SUIL) slv2_value_free(_ui_type); - +#else + /* _ui_type points to a global, so leave it alone */ +#endif delete [] _control_data; delete [] _shadow_data; }