Core: Fix a leak on OSX that could occur in IOdarwin.mm

If a bluetooth connection isn't able to be opened with a Wiimote, then a memory leak would occur as we don't release cbt
This commit is contained in:
lioncash 2014-08-06 12:30:45 -04:00
parent 62cc22ac11
commit f21d50e104
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@ bool Wiimote::ConnectInternal()
{ {
ERROR_LOG(WIIMOTE, "Unable to open Bluetooth connection to wiimote %i: %x", ERROR_LOG(WIIMOTE, "Unable to open Bluetooth connection to wiimote %i: %x",
index + 1, ret); index + 1, ret);
[cbt release];
return false; return false;
} }