Skip to content

Commit

Permalink
rm3100: cleanup device interface on destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar authored and bkueng committed Aug 14, 2020
1 parent f1e5b1d commit 877c197
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/drivers/magnetometer/rm3100/rm3100.cpp
Expand Up @@ -66,6 +66,8 @@ RM3100::~RM3100()
perf_free(_comms_errors);
perf_free(_range_errors);
perf_free(_conf_errors);

delete _interface;
}

int RM3100::self_test()
Expand Down

0 comments on commit 877c197

Please sign in to comment.