diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-03 14:34:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-03 14:34:40 +0000 |
commit | 92e72260b120c9f04a26a358ccb36b65f1a88ffa (patch) | |
tree | 3c51c3f4f64f7ad3b80d8197cb5e50cc4e6bc96a /libs/ardour/lv2_plugin.cc | |
parent | 55586be83a596381e06a8c5270e6f22ef8bf5bd6 (diff) |
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
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |