Author: jfarrell
Date: Fri Jul 27 15:48:37 2012
New Revision: 1366424
URL: http://svn.apache.org/viewvc?rev=1366424&view=rev
Log:
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
Modified:
thrift/trunk/lib/cocoa/src/server/TSocketServer.m
Modified: thrift/trunk/lib/cocoa/src/server/TSocketServer.m
URL:
http://svn.apache.org/viewvc/thrift/trunk/lib/cocoa/src/server/TSocketServer.m?rev=1366424&r1=1366423&r2=1366424&view=diff
==============================================================================
--- thrift/trunk/lib/cocoa/src/server/TSocketServer.m (original)
+++ thrift/trunk/lib/cocoa/src/server/TSocketServer.m Fri Jul 27 15:48:37 2012
@@ -96,7 +96,7 @@ NSString * const kTSockerServer_Transpor
- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObject: self];
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
[mInputProtocolFactory release_stub];
[mOutputProtocolFactory release_stub];
[mProcessorFactory release_stub];