[cleanup] [ios] Fixed Undetached delegates.

This commit is contained in:
Ilya Grechuhin 2017-01-10 16:04:38 +03:00
parent 940bcb59d0
commit 8d574916fe
2 changed files with 10 additions and 0 deletions

View file

@ -110,6 +110,11 @@ vector<pair<string, string>> availableLanguages()
return self;
}
- (void)dealloc
{
self.speechSynthesizer.delegate = nil;
}
+ (NSString *)ttsStatusNotificationKey { return @"TTFStatusWasChangedFromSettingsNotification"; }
- (vector<pair<string, string>>)availableLanguages { return _availableLanguages; }
- (void)setNotificationsLocale:(NSString *)locale

View file

@ -192,6 +192,11 @@ void setPermissionRequested()
return self;
}
- (void)dealloc
{
self.locationManager.delegate = nil;
}
#pragma mark - Add/Remove Observers
+ (void)addObserver:(TObserver)observer