mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
SDRPlay plugin: properly exit libusb at end of enumeration
This commit is contained in:
@@ -93,6 +93,11 @@ PluginInterface::SamplingDevices SDRPlayPlugin::enumSampleSources()
|
||||
|
||||
libusb_free_device_list(devs, 1);
|
||||
|
||||
if (usb_context)
|
||||
{
|
||||
libusb_exit(usb_context);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user