amend 311adde (LV2-1.0.0 compat)
authorRobin Gareus <robin@gareus.org>
Mon, 26 Oct 2015 12:24:23 +0000 (13:24 +0100)
committerRobin Gareus <robin@gareus.org>
Mon, 26 Oct 2015 12:24:23 +0000 (13:24 +0100)
libs/ardour/lv2_plugin.cc

index bed66b62afbf5b65c985db64e169acd9076d98f6..a9a4ac10f75ca834352ba98f4d3e778447c9a7cf 100644 (file)
@@ -266,7 +266,9 @@ struct LV2Plugin::Impl {
        LV2_Atom_Forge               forge;
        LV2_Atom_Forge               ui_forge;
        int32_t                      block_length;
+#ifdef HAVE_LV2_1_2_0
        LV2_Options_Option*          options;
+#endif
 };
 
 LV2Plugin::LV2Plugin (AudioEngine& engine,
@@ -692,7 +694,9 @@ LV2Plugin::~LV2Plugin ()
        lilv_state_free(_impl->state);
        lilv_node_free(_impl->name);
        lilv_node_free(_impl->author);
+#ifdef HAVE_LV2_1_2_0
        free(_impl->options);
+#endif
 
        free(_features);
        free(_make_path_feature.data);