Remove observer in dealloc

This commit is contained in:
Blake Watters
2011-08-10 20:29:12 -04:00
parent 2b3a0f2c9a
commit 9420af3276

View File

@@ -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;