Core/Misc: Remove redundant null pointer checks before delete (#2679)

Co-authored-by: Ujp8LfXBJ6wCPR <github@lillecarl.com>

Co-authored-by: Ujp8LfXBJ6wCPR <github@lillecarl.com>
This commit is contained in:
Viste
2020-02-20 20:33:28 +03:00
committed by GitHub
parent 0cabb8e7e1
commit a7970b711a
4 changed files with 9 additions and 6 deletions

View File

@@ -111,7 +111,7 @@ void MPQFile::seekRelative(int offset)
void MPQFile::close()
{
if (buffer) delete[] buffer;
delete[] buffer;
buffer = 0;
eof = true;
}