Skip to content

Commit

Permalink
Thrift-1662:"removeObject:" should be "removeObserver:" in [-TSocketS…
Browse files Browse the repository at this point in the history
…erver 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
  • Loading branch information
jfarrell committed Jul 27, 2012
1 parent c9c972b commit 6f3a526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cocoa/src/server/TSocketServer.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ - (id) initWithPort: (int) port


- (void) dealloc {
[[NSNotificationCenter defaultCenter] removeObject: self];
[[NSNotificationCenter defaultCenter] removeObserver:self];
[mInputProtocolFactory release_stub];
[mOutputProtocolFactory release_stub];
[mProcessorFactory release_stub];
Expand Down

0 comments on commit 6f3a526

Please sign in to comment.