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

View file

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