Fixed memory management issue with KeyMapper

Disabled badge icon until all quirks are sorted
This commit is contained in:
michael starke
2014-03-27 22:21:15 +01:00
parent 0160b9055a
commit 34b8169895
2 changed files with 3 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ NSString *const MPDidChangeStoredKeyFilesSettings = @"com.hicknhack.macpass.MPDi
serverDaemon = [[MPServerDaemon alloc] init];
lockDaemon = [[MPLockDaemon alloc] init];
autotypeDaemon = [[MPAutotypeDaemon alloc] init];
dockTileHelper = [[MPDockTileHelper alloc] init];
//dockTileHelper = [[MPDockTileHelper alloc] init];
}
- (NSString *)applicationName {

View File

@@ -61,7 +61,8 @@ uint16_t const kMPUnknownKeyCode = UINT16_MAX;
static NSMutableDictionary *keyboardCodeDictionary;
TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource();
NSString *localizedName = CFBridgingRelease(TISGetInputSourceProperty(currentKeyboard, kTISPropertyLocalizedName));
NSString *localizedName = (__bridge NSString *)TISGetInputSourceProperty(currentKeyboard, kTISPropertyLocalizedName);
CFRelease(currentKeyboard);
if(keyboardCodeDictionary == nil) {
/* Input source should not change that much while we are running */