Skip to content
Snippets Groups Projects
Commit d628a537 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix leaks in mac IME

parent 97ea17e6
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
- (void)dealloc - (void)dealloc
{ {
[currentInputLanguage release];
[super dealloc]; [super dealloc];
} }
...@@ -199,12 +200,14 @@ ...@@ -199,12 +200,14 @@
- (bool) romanScript - (bool) romanScript
{ {
// How to add support for new languages with the input window: @autoreleasepool {
// Simply append this array with the language code (ja for japanese, ko for korean, zh for chinese, etc.) // How to add support for new languages with the input window:
NSArray *nonRomanScript = [[NSArray alloc] initWithObjects:@"ja", @"ko", @"zh-Hant", @"zh-Hans", nil]; // Simply append this array with the language code (ja for japanese, ko for korean, zh for chinese, etc.)
if ([nonRomanScript containsObject:currentInputLanguage]) NSArray* nonRomanScript = @[@"ja", @"ko", @"zh-Hant", @"zh-Hans"];
{ if ([nonRomanScript containsObject:currentInputLanguage])
return false; {
return false;
}
} }
return true; return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment