fix control surface discovery crash:
On OSX unloading a module deletes all references to it and the descriptor becomes invalid.
This commit is contained in:
parent
2c95cb0652
commit
d58f68ae97
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user