Don't destroy the libusb context before freeing the device list.

This commit is contained in:
Michael Ehrenreich committed 2015-03-21 03:12:42 +01:00
1 parent 39c41f5c70
commit 905a663a96
1 file changed
+3 -2
+3 -2
View File
@@ -168,10 +168,11 @@ void Setup()
}
}
}
if (!s_detected)
Shutdown();
libusb_free_device_list(list, 1);
if (!s_detected)
Shutdown();
}