mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-28 02:54:31 +03:00
Eliminate a memory leak
This commit is contained in:
parent
36eb5d12af
commit
4b5b7fe7c7
@ -134,6 +134,9 @@ static void socket_call_back(
|
||||
}
|
||||
|
||||
- (void)disconnectAndStop {
|
||||
// Otherwise we'll live forever. (MsgPackRpc is retained in dataCallbak)
|
||||
self.dataCallback = nil;
|
||||
|
||||
if (_socket != NULL && CFSocketIsValid(_socket)) {
|
||||
CFRunLoopStop(_run_loop);
|
||||
CFSocketInvalidate(_socket);
|
||||
|
Loading…
Reference in New Issue
Block a user