Possible crashfix for OSX.
This commit is contained in:
parent
ef90b15f3e
commit
6b2804e296
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue