mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 15:53:33 +08:00
clang-tidy: enable readability-delete-null-pointer and fix
This commit is contained in:
@@ -57,13 +57,8 @@ MavlinkFTP::MavlinkFTP(Mavlink *mavlink) :
|
||||
|
||||
MavlinkFTP::~MavlinkFTP()
|
||||
{
|
||||
if (_work_buffer1) {
|
||||
delete[] _work_buffer1;
|
||||
}
|
||||
|
||||
if (_work_buffer2) {
|
||||
delete[] _work_buffer2;
|
||||
}
|
||||
delete[] _work_buffer1;
|
||||
delete[] _work_buffer2;
|
||||
}
|
||||
|
||||
unsigned
|
||||
|
||||
Reference in New Issue
Block a user