mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Bunch of tiny memory leaks fixed and cleanup, フウ〜!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5056 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
5
Externals/WiiUseSrc/Src/io_osx.m
vendored
5
Externals/WiiUseSrc/Src/io_osx.m
vendored
@ -30,7 +30,7 @@
|
||||
* @file
|
||||
* @brief Handles device I/O for *nix.
|
||||
*/
|
||||
|
||||
#define BLUETOOTH_VERSION_USE_CURRENT
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -225,7 +225,7 @@ int wiiuse_find(struct wiimote_t** wm, int max_wiimotes, int timeout) {
|
||||
int found_devices;
|
||||
int found_wiimotes;
|
||||
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
IOBluetoothHostController *bth = [[IOBluetoothHostController alloc] init];
|
||||
if([bth addressAsString] == nil)
|
||||
@ -250,6 +250,7 @@ int wiiuse_find(struct wiimote_t** wm, int max_wiimotes, int timeout) {
|
||||
|
||||
WIIMOTE_ENABLE_STATE(wm[found_wiimotes], WIIMOTE_STATE_DEV_FOUND);
|
||||
|
||||
[bth release];
|
||||
[bti release];
|
||||
[sbt release];
|
||||
|
||||
|
Reference in New Issue
Block a user