mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
AP_InertialSensor: MPU6000: fix leaking samples
This commit is contained in:
parent
f18dd17377
commit
d9a4d3e777
@ -397,6 +397,7 @@ AP_InertialSensor_MPU6000::AP_InertialSensor_MPU6000(AP_InertialSensor &imu, AP_
|
||||
AP_InertialSensor_MPU6000::~AP_InertialSensor_MPU6000()
|
||||
{
|
||||
delete _bus;
|
||||
delete _samples;
|
||||
}
|
||||
|
||||
/* Detect the sensor on SPI bus. It must have a corresponding device on
|
||||
|
@ -111,7 +111,7 @@ private:
|
||||
#endif
|
||||
volatile uint16_t _sum_count;
|
||||
bool _fifo_mode;
|
||||
uint8_t *_samples;
|
||||
uint8_t *_samples = nullptr;
|
||||
};
|
||||
|
||||
class AP_MPU6000_BusDriver_SPI : public AP_MPU6000_BusDriver
|
||||
|
Loading…
Reference in New Issue
Block a user