mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 15:31:17 +01:00
Core: Fix two more potential memory leaks within IOdarwin.mm
This commit is contained in:
parent
b38022df43
commit
47274ab992
@ -142,6 +142,8 @@ void WiimoteScanner::FindWiimotes(std::vector<Wiimote*> & found_wiimotes, Wiimot
|
|||||||
if ([bti start] != kIOReturnSuccess)
|
if ([bti start] != kIOReturnSuccess)
|
||||||
{
|
{
|
||||||
ERROR_LOG(WIIMOTE, "Unable to do bluetooth discovery");
|
ERROR_LOG(WIIMOTE, "Unable to do bluetooth discovery");
|
||||||
|
[bth release];
|
||||||
|
[sbt release];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user