clang-tidy: enable readability-delete-null-pointer and fix

This commit is contained in:
Daniel Agar
2019-10-28 10:50:31 -04:00
parent 4192414576
commit 744f06cc8f
7 changed files with 8 additions and 27 deletions
@@ -297,9 +297,7 @@ MulticopterPositionControl::MulticopterPositionControl() :
MulticopterPositionControl::~MulticopterPositionControl()
{
if (_wv_controller != nullptr) {
delete _wv_controller;
}
delete _wv_controller;
perf_free(_cycle_perf);
}