From 47274ab992a968b1e6d744b66947dad15f63bbd7 Mon Sep 17 00:00:00 2001 From: lioncash Date: Fri, 8 Aug 2014 13:14:18 -0400 Subject: [PATCH] Core: Fix two more potential memory leaks within IOdarwin.mm --- Source/Core/Core/HW/WiimoteReal/IOdarwin.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/Core/HW/WiimoteReal/IOdarwin.mm b/Source/Core/Core/HW/WiimoteReal/IOdarwin.mm index d3e10696f4..1cce25c00f 100644 --- a/Source/Core/Core/HW/WiimoteReal/IOdarwin.mm +++ b/Source/Core/Core/HW/WiimoteReal/IOdarwin.mm @@ -142,6 +142,8 @@ void WiimoteScanner::FindWiimotes(std::vector & found_wiimotes, Wiimot if ([bti start] != kIOReturnSuccess) { ERROR_LOG(WIIMOTE, "Unable to do bluetooth discovery"); + [bth release]; + [sbt release]; return; }