summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PluginModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/client/PluginModel.cpp')
-rw-r--r--src/libs/client/PluginModel.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libs/client/PluginModel.cpp b/src/libs/client/PluginModel.cpp
index 8c2705da..db62b3bf 100644
--- a/src/libs/client/PluginModel.cpp
+++ b/src/libs/client/PluginModel.cpp
@@ -50,9 +50,9 @@ PluginModel::ui(Ingen::Shared::World* world, SharedPtr<NodeModel> node) const
if (_type != LV2)
return SharedPtr<PluginUI>();
- Glib::Mutex::Lock(_rdf_world->mutex());
-
- return PluginUI::create(world, node, _slv2_plugin);
+ Glib::Mutex::Lock lock(_rdf_world->mutex());
+ SharedPtr<PluginUI> ret = PluginUI::create(world, node, _slv2_plugin);
+ return ret;
}
@@ -69,6 +69,8 @@ PluginModel::icon_path() const
string
PluginModel::get_lv2_icon_path(SLV2Plugin plugin)
{
+ Glib::Mutex::Lock lock(_rdf_world->mutex());
+
string result;
SLV2Value svg_icon_pred = slv2_value_new_uri(_slv2_world,
"http://ll-plugins.nongnu.org/lv2/namespace#svgIcon");