mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Fixups for file descriptor leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40034 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
205f26ec86
commit
525d467e18
3 changed files with 49 additions and 23 deletions
|
@ -720,8 +720,11 @@ static RunLoopEventType typeForStream(NSStream *aStream)
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
if ([self _isOpened])
|
||||
[self close];
|
||||
if (_currentStatus != NSStreamStatusNotOpen
|
||||
&& _currentStatus != NSStreamStatusClosed)
|
||||
{
|
||||
[self close];
|
||||
}
|
||||
RELEASE(_data);
|
||||
[super dealloc];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue