fix memory leak in case LV2 GUI fails.
This commit is contained in:
parent
b489385bf1
commit
12ad41675d
@ -294,6 +294,9 @@ LV2PluginUI::lv2ui_instantiate(const std::string& title)
|
|||||||
#endif
|
#endif
|
||||||
if (!ui_bundle_path || !ui_binary_path) {
|
if (!ui_bundle_path || !ui_binary_path) {
|
||||||
error << _("failed to get path for UI bindle or binary") << endmsg;
|
error << _("failed to get path for UI bindle or binary") << endmsg;
|
||||||
|
free(ui_bundle_path);
|
||||||
|
free(ui_binary_path);
|
||||||
|
free(features);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user