mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 00:13:59 -04:00
AP_HAL: Remove pointer check before delete
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
6bdc1704f4
commit
12cd138030
@ -78,9 +78,7 @@ public:
|
||||
|
||||
|
||||
virtual ~Device() {
|
||||
if (_checked.regs != nullptr) {
|
||||
delete[] _checked.regs;
|
||||
}
|
||||
delete[] _checked.regs;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user