mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 07:23:34 +08:00
multirotor mixer: use correct version of delete operator for array pointer
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -102,7 +102,7 @@ MultirotorMixer::MultirotorMixer(ControlCallback control_cb,
|
|||||||
MultirotorMixer::~MultirotorMixer()
|
MultirotorMixer::~MultirotorMixer()
|
||||||
{
|
{
|
||||||
if (_outputs_prev != nullptr) {
|
if (_outputs_prev != nullptr) {
|
||||||
delete _outputs_prev;
|
delete[] _outputs_prev;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user