Thrift-1662:"removeObject:" should be "removeObserver:" in [-TSocketServer dealloc]?
Client: cocoa
Patch: Ken Morishita
Fixed issue there TSockerServer was using wrong notification center method. Using
- (void)removeObserver:(id)notificationObserver
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1366424 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cocoa/src/server/TSocketServer.m b/lib/cocoa/src/server/TSocketServer.m
index 057f41f..4941445 100644
--- a/lib/cocoa/src/server/TSocketServer.m
+++ b/lib/cocoa/src/server/TSocketServer.m
@@ -96,7 +96,7 @@
- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObject: self];
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
[mInputProtocolFactory release_stub];
[mOutputProtocolFactory release_stub];
[mProcessorFactory release_stub];