13
0

fix memory leak in case LV2 GUI fails.

This commit is contained in:
Robin Gareus 2015-02-19 20:39:26 +01:00
parent b489385bf1
commit 12ad41675d

View 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;
}