This commit is contained in:
Reece Wilson 2023-10-29 11:24:00 +00:00
parent 54e8cf01c5
commit 59b30e47c0

View File

@ -34,9 +34,9 @@ namespace Aurora::IO::Adapters
void SeekingReader::Close()
{
if (this->pReader)
if (auto pReader = AuExchange(this->pReader, {}))
{
this->pReader->Close();
pReader->Close();
}
}