mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 15:12:21 +00:00
Fixed memory management issue with KeyMapper
Disabled badge icon until all quirks are sorted
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user