mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-10 04:37:37 +01:00
reorder calls to prevent a crash
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
03f3504b41
commit
24a12a44d1
@ -813,11 +813,11 @@ int rtlsdr_close(rtlsdr_dev_t *dev)
|
||||
|
||||
rtlsdr_deinit_baseband(dev);
|
||||
|
||||
_rtlsdr_free_async_buffers(dev);
|
||||
|
||||
libusb_release_interface(dev->devh, 0);
|
||||
libusb_close(dev->devh);
|
||||
|
||||
_rtlsdr_free_async_buffers(dev);
|
||||
|
||||
libusb_exit(dev->ctx);
|
||||
|
||||
free(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user