mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
SDRPlay plugin: properly exit libusb at end of enumeration
This commit is contained in:
parent
c1aa21e1fd
commit
5996fc4f48
@ -93,6 +93,11 @@ PluginInterface::SamplingDevices SDRPlayPlugin::enumSampleSources()
|
||||
|
||||
libusb_free_device_list(devs, 1);
|
||||
|
||||
if (usb_context)
|
||||
{
|
||||
libusb_exit(usb_context);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user