Unregister connectivitymonitor callback at dealloc

pull/15050/head
Muxi Yan 7 years ago committed by GitHub
parent 417e63af52
commit b458070aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/objective-c/GRPCClient/private/GRPCHost.m

@ -50,6 +50,7 @@ static NSMutableDictionary *kHostCache;
if (_channelCreds != nil) { if (_channelCreds != nil) {
grpc_channel_credentials_release(_channelCreds); grpc_channel_credentials_release(_channelCreds);
} }
[GRPCConnectivityMonitor unregisterObserver:self];
} }
// Default initializer. // Default initializer.

Loading…
Cancel
Save