px4io driver: Deallocate perf counters in destructor properly

This commit is contained in:
Lorenz Meier 2014-05-14 14:00:31 +02:00
parent c2f825647e
commit 332e08b44a
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}