minor from clang-tidy

This commit is contained in:
Erik Frojdh
2020-02-04 10:36:03 +01:00
parent b9446f40d1
commit 40bfca588b
4 changed files with 9 additions and 15 deletions

View File

@ -76,18 +76,12 @@ void Fifo::DestroyFifos(){
free(memory);
memory = nullptr;
}
if (fifoBound) {
delete fifoBound;
fifoBound = nullptr;
}
if (fifoFree) {
delete fifoFree;
fifoFree = nullptr;
}
if (fifoStream) {
delete fifoStream;
fifoStream = nullptr;
}
delete fifoBound;
fifoBound = nullptr;
delete fifoFree;
fifoFree = nullptr;
delete fifoStream;
fifoStream = nullptr;
}