mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1053204 - remove redundant close() r=bent
This commit is contained in:
parent
9b020d554d
commit
6b37857940
@ -55,12 +55,7 @@ RemoteOpenFileParent::OpenSendCloseDelete()
|
||||
// Sending a potentially invalid file descriptor is just fine.
|
||||
unused << Send__delete__(this, fileDescriptor);
|
||||
|
||||
if (fileDescriptor.IsValid()) {
|
||||
// close file now that other process has it open, else we'll leak fds in the
|
||||
// parent process.
|
||||
close(fileDescriptor.PlatformHandle());
|
||||
}
|
||||
|
||||
// Current process's file descriptor is closed by FileDescriptor destructor.
|
||||
#endif // OS_TYPE
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user