mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-24 11:12:27 -04: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);
|
libusb_free_device_list(devs, 1);
|
||||||
|
|
||||||
|
if (usb_context)
|
||||||
|
{
|
||||||
|
libusb_exit(usb_context);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user