forked from Archive/PX4-Autopilot
hmc5883: cleanup device interface on destruction
This commit is contained in:
parent
0c91a29c3f
commit
f8241f144c
|
@ -58,6 +58,8 @@ HMC5883::~HMC5883()
|
|||
perf_free(_comms_errors);
|
||||
perf_free(_range_errors);
|
||||
perf_free(_conf_errors);
|
||||
|
||||
delete _interface;
|
||||
}
|
||||
|
||||
int HMC5883::init()
|
||||
|
|
Loading…
Reference in New Issue