Possible crashfix for OSX.

This commit is contained in:
Jordan Woyak 2013-02-24 22:29:33 -06:00
parent ef90b15f3e
commit 6b2804e296
2 changed files with 3 additions and 2 deletions

View File

@ -195,6 +195,8 @@ bool Wiimote::Connect()
ERROR_LOG(WIIMOTE, "Unable to open L2CAP channels "
"for wiimote %i", index + 1);
Disconnect();
[cbt release];
return false;
}
@ -209,7 +211,6 @@ bool Wiimote::Connect()
m_connected = true;
[cbt release];
return true;
}

View File

@ -51,7 +51,7 @@ WiimoteScanner g_wiimote_scanner;
Wiimote::Wiimote()
: index()
#ifdef __APPLE__
, inputlen(0)
, btd(), ichan(), cchan(), inputlen(), m_connected()
#elif defined(__linux__) && HAVE_BLUEZ
, cmd_sock(-1), int_sock(-1)
#elif defined(_WIN32)