diff options
author | David Robillard <d@drobilla.net> | 2008-08-14 04:03:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-14 04:03:14 +0000 |
commit | 58e8d1cddd520ae0ddf39f16210f1500868a2b2e (patch) | |
tree | 3da3105ec9c526f36352295b6d75c390e05c26b5 /src/libs/gui | |
parent | 2ad7b1dab1cbbc9a35fe84ce784179d78fba3a29 (diff) | |
download | ingen-58e8d1cddd520ae0ddf39f16210f1500868a2b2e.tar.gz ingen-58e8d1cddd520ae0ddf39f16210f1500868a2b2e.tar.bz2 ingen-58e8d1cddd520ae0ddf39f16210f1500868a2b2e.zip |
Lock RDF world mutex in all places slv2 or redland is accessed (fix random segfaults usually on patch loading).
git-svn-id: http://svn.drobilla.net/lad/ingen@1367 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui')
-rw-r--r-- | src/libs/gui/PatchCanvas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/gui/PatchCanvas.cpp b/src/libs/gui/PatchCanvas.cpp index 48ad1366..5d85ac30 100644 --- a/src/libs/gui/PatchCanvas.cpp +++ b/src/libs/gui/PatchCanvas.cpp @@ -216,7 +216,7 @@ PatchCanvas::build_plugin_class_menu(Gtk::Menu* menu, void PatchCanvas::build_plugin_menu() { - Glib::Mutex::Lock(PluginModel::rdf_world()->mutex()); + Glib::Mutex::Lock lock(PluginModel::rdf_world()->mutex()); _menu->items().push_back(Gtk::Menu_Helpers::ImageMenuElem("Plugin", *(manage(new Gtk::Image(Gtk::Stock::EXECUTE, Gtk::ICON_SIZE_MENU))))); |