fix memory leak in case LV2 GUI fails.
authorRobin Gareus <robin@gareus.org>
Thu, 19 Feb 2015 19:39:26 +0000 (20:39 +0100)
committerRobin Gareus <robin@gareus.org>
Thu, 19 Feb 2015 19:39:26 +0000 (20:39 +0100)
gtk2_ardour/lv2_plugin_ui.cc

index 8a6d5260b496f33274e4ba2fc6f58b8f3d86f8d7..3a64a830d16d43a4adad471789d2b36871bdadca 100644 (file)
@@ -294,6 +294,9 @@ LV2PluginUI::lv2ui_instantiate(const std::string& title)
 #endif
        if (!ui_bundle_path || !ui_binary_path) {
                error << _("failed to get path for UI bindle or binary") << endmsg;
+               free(ui_bundle_path);
+               free(ui_binary_path);
+               free(features);
                return;
        }