mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 08:12:28 +00:00
using autorelease pool
This commit is contained in:
@@ -208,7 +208,10 @@ static CGKeyCode kMPFunctionKeyCodes[] = { kVK_F1, kVK_F2, kVK_F3, kVK_F4, kVK_F
|
|||||||
}
|
}
|
||||||
|
|
||||||
+ (void)appendObfuscatedPasteCommandForContent:(NSString *)pasteContent toCommands:(NSMutableArray *)commands {
|
+ (void)appendObfuscatedPasteCommandForContent:(NSString *)pasteContent toCommands:(NSMutableArray *)commands {
|
||||||
if(pasteContent) {
|
if(!pasteContent) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
@autoreleasepool {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* obfuscate entered data using Two-Channel Auto-Type Obfuscation
|
* obfuscate entered data using Two-Channel Auto-Type Obfuscation
|
||||||
@@ -217,8 +220,9 @@ static CGKeyCode kMPFunctionKeyCodes[] = { kVK_F1, kVK_F2, kVK_F3, kVK_F4, kVK_F
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
NSString *paste = @"";
|
NSString *paste = @"";
|
||||||
NSMutableArray *typeKeys = [NSMutableArray array];
|
|
||||||
NSMutableArray *modifiers = [NSMutableArray array];
|
NSMutableArray *typeKeys = [[NSMutableArray alloc] init];
|
||||||
|
NSMutableArray *modifiers = [[NSMutableArray alloc] init];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* seed the random number generator using the first 4 bytes of the string's SHA1
|
* seed the random number generator using the first 4 bytes of the string's SHA1
|
||||||
@@ -408,4 +412,5 @@ static CGKeyCode kMPFunctionKeyCodes[] = { kVK_F1, kVK_F2, kVK_F3, kVK_F4, kVK_F
|
|||||||
- (BOOL)isValid {
|
- (BOOL)isValid {
|
||||||
return NO; // No valid command
|
return NO; // No valid command
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Reference in New Issue
Block a user