mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 00:59:44 +00:00
Merge pull request #759 from lioncash/leaks
Core: Fix two more potential memory leaks within IOdarwin.mm
This commit is contained in:
commit
907e0d094f
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue