mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
Remove observer in dealloc
This commit is contained in:
@@ -156,6 +156,8 @@ NSString* RKPathAppendQueryParams(NSString* resourcePath, NSDictionary* queryPar
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
|
||||
self.baseURL = nil;
|
||||
self.username = nil;
|
||||
self.password = nil;
|
||||
|
||||
Reference in New Issue
Block a user