13
0

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:
Robin Gareus 2015-12-30 00:39:19 +01:00
parent 2c95cb0652
commit d58f68ae97

View File

@ -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;