diff options
author | Robin Gareus <robin@gareus.org> | 2015-12-30 00:39:19 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-12-30 00:41:33 +0100 |
commit | d58f68ae9728b6a0bcf73867f59d2f19495886c1 (patch) | |
tree | 6d3079baa6ba8c86a6558c94258ecc61b558ebcc | |
parent | 2c95cb065290b67f42674ee31a149c31f78cf3f0 (diff) |
fix control surface discovery crash:
On OSX unloading a module deletes all references to it and
the descriptor becomes invalid.
-rw-r--r-- | libs/ardour/control_protocol_manager.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/ardour/control_protocol_manager.cc b/libs/ardour/control_protocol_manager.cc index 8f2f026d55..18e7e177d6 100644 --- a/libs/ardour/control_protocol_manager.cc +++ b/libs/ardour/control_protocol_manager.cc @@ -332,8 +332,6 @@ ControlProtocolManager::control_protocol_discover (string path) DEBUG_TRACE (DEBUG::ControlProtocols, string_compose(_("Control surface protocol discovered: \"%1\"\n"), cpi->name)); } - - delete (Glib::Module*)descriptor->module; } return 0; @@ -365,8 +363,6 @@ ControlProtocolManager::get_descriptor (string path) if (descriptor) { descriptor->module = (void*)module; - } else { - delete module; } return descriptor; |