From 6f3a526025704ff1ee5b5ace761abe67e58d3725 Mon Sep 17 00:00:00 2001 From: Jake Farrell Date: Fri, 27 Jul 2012 15:48:37 +0000 Subject: [PATCH] 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 --- lib/cocoa/src/server/TSocketServer.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.17.1