forked from Archive/PX4-Autopilot
px4io driver: Deallocate perf counters in destructor properly
This commit is contained in:
parent
c2f825647e
commit
332e08b44a
|
@ -529,6 +529,11 @@ PX4IO::~PX4IO()
|
|||
if (_interface != nullptr)
|
||||
delete _interface;
|
||||
|
||||
/* deallocate perfs */
|
||||
perf_free(_perf_update);
|
||||
perf_free(_perf_write);
|
||||
perf_free(_perf_chan_count);
|
||||
|
||||
g_dev = nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue