AP_HAL_Linux: RCOutput_Sysfs: fix deleting _pwm_channels array

delete [] should be called rather than delete.
This commit is contained in:
Georgii Staroselskii 2017-09-07 18:26:46 +03:00 committed by Lucas De Marchi
parent f6858821a6
commit 226eeeb738

View File

@ -37,7 +37,7 @@ RCOutput_Sysfs::~RCOutput_Sysfs()
delete _pwm_channels[i];
}
delete _pwm_channels;
delete [] _pwm_channels;
}
void RCOutput_Sysfs::init()