mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 03:13:34 +08:00
hmc5883: cleanup device interface on destruction
This commit is contained in:
@@ -58,6 +58,8 @@ HMC5883::~HMC5883()
|
|||||||
perf_free(_comms_errors);
|
perf_free(_comms_errors);
|
||||||
perf_free(_range_errors);
|
perf_free(_range_errors);
|
||||||
perf_free(_conf_errors);
|
perf_free(_conf_errors);
|
||||||
|
|
||||||
|
delete _interface;
|
||||||
}
|
}
|
||||||
|
|
||||||
int HMC5883::init()
|
int HMC5883::init()
|
||||||
|
|||||||
Reference in New Issue
Block a user