Bug 1264566 - Part 2: Refactor all usage of FileDescriptor. r=valentin
Callers should use a UniquePtr to hold the platform handle. MozReview-Commit-ID: 6BWnyAf4b3a
This commit is contained in:
@@ -1914,9 +1914,9 @@ PluginModuleParent::RecvBackUpXResources(const FileDescriptor& aXSocketFd)
|
||||
#else
|
||||
MOZ_ASSERT(0 > mPluginXSocketFdDup.get(),
|
||||
"Already backed up X resources??");
|
||||
mPluginXSocketFdDup.forget();
|
||||
if (aXSocketFd.IsValid()) {
|
||||
mPluginXSocketFdDup.reset(aXSocketFd.PlatformHandle());
|
||||
auto rawFD = aXSocketFd.ClonePlatformHandle();
|
||||
mPluginXSocketFdDup.reset(rawFD.release());
|
||||
}
|
||||
#endif
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user