mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Prevent too early release
This commit is contained in:
parent
d704846c6f
commit
13f7446a32
1 changed files with 5 additions and 0 deletions
|
@ -1584,7 +1584,12 @@ setNonBlocking(SOCKET fd)
|
|||
*/
|
||||
if (_handler != nil && [_handler handshake] == YES)
|
||||
{
|
||||
/* Must retain self here to avoid premature deallocation of input
|
||||
* and/or output stream in case of an error during TLS handshake.
|
||||
*/
|
||||
RETAIN(self);
|
||||
[super _sendEvent: event delegate: _handler];
|
||||
RELEASE(self);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue