-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
First problem:
You have those 2 lines:
[_inputStream removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes];
[_inputStream removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes];
The second line should be replaced with _outputStream.
Second problem:
You are retaining the _inputStream and _outputStream, which is wrong. the returned streams from CFSocketCreate & CFStreamCreatePairWithSocketToHost are following the "Create Rule". which means they are already returned as retained. you should only release them when you're done.
Metadata
Metadata
Assignees
Labels
No labels