File handle deallocation fix suggested by David

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38937 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-08-28 09:21:45 +00:00
parent ae55e1bce3
commit d91dd0b821
2 changed files with 12 additions and 9 deletions

View file

@ -359,11 +359,14 @@ static GSTcpTune *tune = nil;
DESTROY(address);
DESTROY(service);
DESTROY(protocol);
[self finalize];
DESTROY(readInfo);
DESTROY(writeInfo);
/* Finalize *after* destroying readInfo and writeInfo so that, if the
* file handle needs to be closed, we don't generate any notifications
* containing the deallocated object. Tnanks to david for this fix.
*/
[self finalize];
[super dealloc];
}