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,10 +78,8 @@ public:
|
||||
|
||||
|
||||
virtual ~Device() {
|
||||
if (_checked.regs != nullptr) {
|
||||
delete[] _checked.regs;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Change device address. Note that this is the 7 bit address, it
|
||||
|
Loading…
Reference in New Issue
Block a user