mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 03:43:34 +08:00
clang-tidy: enable readability-delete-null-pointer and fix
This commit is contained in:
@@ -297,9 +297,7 @@ MulticopterPositionControl::MulticopterPositionControl() :
|
||||
|
||||
MulticopterPositionControl::~MulticopterPositionControl()
|
||||
{
|
||||
if (_wv_controller != nullptr) {
|
||||
delete _wv_controller;
|
||||
}
|
||||
delete _wv_controller;
|
||||
|
||||
perf_free(_cycle_perf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user