From: Robin Gareus Date: Thu, 19 Feb 2015 19:39:26 +0000 (+0100) Subject: fix memory leak in case LV2 GUI fails. X-Git-Tag: 4.0-rc1~421 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=12ad41675d9f246bbe7f6902372c29f0f6f3e257;p=ardour.git fix memory leak in case LV2 GUI fails. --- diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index 8a6d5260b4..3a64a830d1 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -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; }