Remove dubious retain on OS X.
Revert this if the claimed crash actually shows up - or better, figure out the actual cause.
This commit is contained in:
parent
e0214b1a38
commit
0e949afa57
|
@ -210,11 +210,6 @@ bool Wiimote::Connect()
|
|||
return false;
|
||||
}
|
||||
|
||||
// As of 10.8 these need explicit retaining or writing to the wiimote has a very high
|
||||
// chance of crashing and burning.
|
||||
[ichan retain];
|
||||
[cchan retain];
|
||||
|
||||
NOTICE_LOG(WIIMOTE, "Connected to wiimote %i at %s",
|
||||
index + 1, [[btd addressString] UTF8String]);
|
||||
|
||||
|
@ -227,15 +222,15 @@ bool Wiimote::Connect()
|
|||
// Disconnect a wiimote.
|
||||
void Wiimote::Disconnect()
|
||||
{
|
||||
if (btd != NULL)
|
||||
[btd closeConnection];
|
||||
|
||||
if (ichan != NULL)
|
||||
[ichan release];
|
||||
|
||||
if (cchan != NULL)
|
||||
[cchan release];
|
||||
|
||||
if (btd != NULL)
|
||||
[btd closeConnection];
|
||||
|
||||
btd = NULL;
|
||||
cchan = NULL;
|
||||
ichan = NULL;
|
||||
|
|
Loading…
Reference in New Issue