From 905a663a9613e2dab1e62563d44af89a8e576347 Mon Sep 17 00:00:00 2001 From: Michael Ehrenreich Date: Sat, 21 Mar 2015 02:57:03 +0100 Subject: [PATCH] Don't destroy the libusb context before freeing the device list. --- Source/Core/Core/HW/SI_GCAdapter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/SI_GCAdapter.cpp b/Source/Core/Core/HW/SI_GCAdapter.cpp index 99d2362841..13410ac592 100644 --- a/Source/Core/Core/HW/SI_GCAdapter.cpp +++ b/Source/Core/Core/HW/SI_GCAdapter.cpp @@ -168,10 +168,11 @@ void Setup() } } } - if (!s_detected) - Shutdown(); libusb_free_device_list(list, 1); + + if (!s_detected) + Shutdown(); }