From 61bd86208f7d93b02bc62e768d0b72b262e80535 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Sep 2008 03:56:26 +0000 Subject: Fix unlocked access to plugin RDF (possible segfault with -eg). Fix ticket #195. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1521 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PluginModel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libs') diff --git a/src/libs/client/PluginModel.cpp b/src/libs/client/PluginModel.cpp index 32d9fd69..93176b22 100644 --- a/src/libs/client/PluginModel.cpp +++ b/src/libs/client/PluginModel.cpp @@ -60,6 +60,8 @@ PluginModel::human_name() string PluginModel::port_human_name(uint32_t index) { + Glib::Mutex::Lock lock(_rdf_world->mutex()); + #ifdef HAVE_SLV2 if (_slv2_plugin) { SLV2Port port = slv2_port(index); -- cgit v1.2.1