diff options
| author | Léo Lam <leo@leolam.fr> | 2021-04-01 12:26:13 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-04-01 21:34:58 +0200 |
| commit | 391644dbb5a382857d6146ddf1e7eacf28d834b5 (patch) | |
| tree | 2945d01ee346ab77d7fcc4f815023c599d3c553d /Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | |
| parent | 06439a2d40a06179633301e91ee85fa3059506fa (diff) | |
IOS/FS: Add a scoped FD class to make it harder to leak FDs
This changes FileSystemProxy::Open to return a file descriptor wrapper
that will ensure the FD is closed when it goes out of scope.
By using such a wrapper we make it more difficult to forget to close
file descriptors.
This fixes a leak in ReadBootContent. I should have added such a class
from the beginning... In practice, I don't think this would have caused
any obvious issue because ReadBootContent is only called after an IOS
relaunch -- which clears all FDs -- and most titles do not get close
to the FD limit.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp')
0 files changed, 0 insertions, 0 deletions
