getting rid of several potential memory leaks and incorrect releases

This commit is contained in:
Lysann Schlegel
2012-11-11 00:25:47 +01:00
parent 233c496fa0
commit 9892efab93
2 changed files with 5 additions and 9 deletions

View File

@@ -131,7 +131,6 @@
// save the device in the wiimote structure
wiimotes[i]->objc_wm = (void*) [[WiiuseWiimote alloc] initWithPtr:wiimotes[i] device: device];
[device retain]; // must retain it for later access through its ref
// mark as found
WIIMOTE_ENABLE_STATE(wiimotes[i], WIIMOTE_STATE_DEV_FOUND);