From: Jake Farrell Date: Fri, 27 Jul 2012 15:48:37 +0000 (+0000) Subject: Thrift-1662:"removeObject:" should be "removeObserver:" in [-TSocketServer dealloc]? X-Git-Tag: 0.9.1~325 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=6f3a526025704ff1ee5b5ace761abe67e58d3725;p=common%2Fthrift.git 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 057f41fc..49414452 100644 --- a/lib/cocoa/src/server/TSocketServer.m +++ b/lib/cocoa/src/server/TSocketServer.m @@ -96,7 +96,7 @@ NSString * const kTSockerServer_TransportKey = @"TSockerServer_Transport"; - (void) dealloc { - [[NSNotificationCenter defaultCenter] removeObject: self]; + [[NSNotificationCenter defaultCenter] removeObserver:self]; [mInputProtocolFactory release_stub]; [mOutputProtocolFactory release_stub]; [mProcessorFactory release_stub];