mirror of
https://github.com/wiiu-env/wudd.git
synced 2024-11-22 01:49:15 +01:00
Close raw odd handle in GMPartitionsState constructor
This commit is contained in:
parent
2d2267807b
commit
c8a687950f
@ -36,6 +36,10 @@ GMPartitionsDumperState::GMPartitionsDumperState(eDumpTarget pTargetDevice) : ta
|
||||
}
|
||||
|
||||
GMPartitionsDumperState::~GMPartitionsDumperState() {
|
||||
if (this->oddFd != -1) {
|
||||
FSAEx_RawClose(__wut_devoptab_fs_client, this->oddFd);
|
||||
this->oddFd = -1;
|
||||
}
|
||||
free(this->sectorBuf);
|
||||
this->sectorBuf = nullptr;
|
||||
free(this->readBuffer);
|
||||
|
Loading…
Reference in New Issue
Block a user